본문 바로가기

Development

[Development] FPS 구하기 ( Frame Per Second ) float UpdateFPS() { static DWORD FrameCnt = 0; static float TimeElapsed = 0; static DWORD lastTime = timeGetTime(); float fResult = 0.0f; DWORD currTime = timeGetTime(); float timeDelta = (currTime - lastTime)*0.001f; FrameCnt++; TimeElapsed += timeDelta; if(TimeElapsed >= 1.0f) { fResult = (float)FrameCnt / TimeElapsed; TimeElapsed = 0.0f; FrameCnt = 0; } lastTime = currTime; return fResult; } 더보기
[STL/string] 문자열 뒤집기 #include #include #include #include //reverse() int main() { char buf[100] = "I am a Boy!"; string str = buf; cout 더보기
[Windows]98에서 정상작동하는 TransparentBlt BOOL GuiKit::TransparentBlt98( HDC hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int hHeightDest, HDC hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, UINT crTransparent ) { COLORREF cColor; HBITMAP bmAndBack, bmAndObject, bmAndMem, bmSave; HBITMAP bmBackOld, bmObjectOld, bmMemOld, bmSaveOld; HDC hdcMem, hdcBack, hdcObject, hdcSave; POINT ptSize; ptSize.x =.. 더보기
[Development]WinMgr Windows UI: Our WinMgr Sample Makes Custom Window Sizing Simple Paul DiLascia This article assumes you�re familiar with the Win32 API and MFC Level of Difficulty 1 2 3 Download the code for this article: WinMgr.exe (89KB) Browse the code for this article at Code Center: WinMgr SUMMARY Programmers using Visual Basic have always had an advantage over C++ programmers when it comes to component and .. 더보기
dll 관련 DLL파일 연결시 '53' 런타임 오류가 발생하였습니다. 메시지가 뜹니다. | etc 2008-09-23 오후 2:59:02 ysyoon (ysyoon) 번호: 281109 / 평점: (-) / 읽음:71 첫번째질문. VC++에서 OPTPricing.dll 이라는 라이브러리를 만들었습니다. VB에서 OPTPricing의 함수를 불러오도록 Pricing.exe 를 만들었구요. 실제 VC++에서 Dubug모드에서 Executable for debug session 에 Pricing.exe 를 연결하여 VC++디버그 모드로 실행시키면 잘됩니다. 먼저 OPTPricing.dll을 system32 폴더 및 Pricing.vbp 프로젝트 폴더 에 모두 복사해두었습니다. Pricing.exe 파일을 직접 실행시키거나.. 더보기
[Eclipse]subclipse(Eclipse용 Subversion) subclipse : Eclipse용 Subversion Home Page : http://subclipse.tigris.org/ Eclipse Plugin 적용법 1. Eclipse -> Help -> Software Updates -> Find and Install... -> Search for new features to install -> Next -> New Remote Site... 2. Name에는 원하는 이름, URL에는 http://subclipse.tigris.org/update_1.4.x -> OK -> Finish ※ 설치법 이미지로 보려면 : http://subclipse.tigris.org/install.html 더보기
[Eclipse]astyle(Artistic Style) plugin astyle : C, C++, C#, Java Source Code Automatic Formatter Home Page : http://astyle.sourceforge.net Project Page : http://sourceforge.net/projects/astyle Eclipse Plugin 적용법 1. Eclipse -> Help -> Software Updates -> Find and Install... -> Search for new features to install -> Next -> New Remote Site... 2. Name에는 원하는 이름, URL에는 http://astyleclipse.sourceforge.net/update -> OK -> Finish 3. Eclipse -.. 더보기
[Development/Project/Game]게임을 개발해 보자.. 유명한 3D게임 엔진 : OGRE 3D 예전에 한번 봤던 엔진 : CDX 우리가 만들 목표 : http://www.runescape.com/ 이미지 등을 가져올 사이트 : http://www.planeshift.it/ 더보기