原创 C++中各種string的相互轉化
一 C++ 中 string與wstring互轉方法一: string WideToMutilByte(const wstring& _src){in
原创 md5 c++實現(轉Gameres.com)
md5 c++實現 //md5.h文件 /******************************************************************************* Copyright (C) 20
原创 得到每幀的渲染耗時
Getting the Time for Each Frame To accurately time your animations, you need to call the QueryPerformanceCounter functi
原创 一個精度很高的計時器
//---------------------------------------------------------------------------// get the millseconds from the demo star
原创 BitBlt詳解
函數功能:該函數對指定的源設備環境區域中的像素進行位塊(bit_block)轉換,以傳送到目標設備環境。 函數原型:BOOL BitBlt(HDC hdcDest,int nXDest,int nYDest,int nWidth,int
原创 VC++的鏈接錯誤LNK2001(轉azure)
學習VC++時經常會遇到鏈接錯誤LNK2001,該錯誤非常討厭,因爲對於編程者來說,最好改的錯誤莫過於編譯錯誤,而一般說來發生連接錯誤時,編譯都已通過。產生連接錯誤的原因非常多,尤其LNK2001錯誤,常常使人不明其所以然。如果不深入地學
原创 如何調試程序的 Release 版本?(轉)
很多時候程序的 Debug 版本運行沒有任何問題,但是一旦發佈 Release 版本後,運行就出錯,着實讓人鬱悶。大家知道,VC++ 中 Release 版本是對無法對源代碼進行調試的。一般的做法是在懷疑有錯誤的代碼前後插入Message
原创 一條檢測內存泄露的函數
_CrtDumpMemoryLeaks Dumps all of the memory blocks in the debug heap when a memory leak has occurred (debug version onl