본문 바로가기

전체 글94

심플한 Tetris를 만들어 보자 - 화면에 이미지를 그려봐요. Wave용 어플을 만들어 보기로 했는데, 한번만에 안나오더라 몇번의 삽질 후 보이기 시작한 화면 조금씩 하는거다. 그냥 취미일 뿐. 우선 badaSDK를 설치 후 (본인은 1.0.0b3로 했다) 아래 소스에서 붉은색 부분을 추가하여 실행하여 보자. O OOO 이런 모양이 하면 하단으로 내려온다. Tetris.h #ifndef __TETRIS_H__ #define __TETRIS_H__ #include #include #include #include #include #include /** * [Tetris] application must inherit from Application class * which provides basic features necessary to define an applicati.. 2010. 8. 16.
Jar정보 검색 JarScan j = new JarScan("C:/tmp"); j.search("umaUtils"); } ------------------------------ import java.io.File; import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; public class JarScan { private String path = ""; private String ptn = ""; private int cnt = 0; public JarScan(String path) { this.path = path; } public void search(String findString) { this.ptn = .. 2010. 8. 12.
Cam #include #include #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 //--------------------------------------------------------------------------- HWND hWndCap; BITMAPINFO bi; LRESULT CALLBACK capVideoStreamCallback(H.. 2010. 8. 10.
unzip import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public boolean unzip(String sourceFile, String targetPath) { boolean flag = false; ZipFile zip = null; InputStream is = null; FileOutputStream fo = null; File f = null; zipList = new ArrayList(); try { zip = new ZipFile(new File(sourceFile)); Enumeration 2010. 8. 3.
FindWindow HWND hWnd = NULL; HWND phWnd = NULL; HDC hDC = NULL; char word[0xff]; AnsiString tmp = "--TRAY"; AnsiString titl = ""; hWnd = FindWindow("#32770", NULL); if(hWnd) { GetWindowText(hWnd, word, 0xfe); titl = AnsiString(word); phWnd = GetParent(hWnd); GetWindowText(phWnd, word, 0xfe); if(memcmp(word, tmp.c_str(), tmp.Length()) != 0) return; hWnd = FindWindowEx(hWnd, 0, NULL, "확인"); if(hWnd) { SendMe.. 2010. 7. 13.
redmine 을 설치하다. 계속 Trac을 써오다가 (Python으로 맹글어짐) confluence Jira+Wiki를 1년 구매하려다 우연치않게 redmine을 찾았다. 우선 집에다 설치했는데 괜찮은 듯.. http://www.redmine.org/ mylyn용 redmine plugin 설치 후 Mylyn으로 Eclipse에 연동하려는데 처음은 실패 이번 주에 다시해 봐야겠네.. 2010. 7. 8.