一、建立一個 MFC 對話盒程式 (可直接下載這邊的範例 DlgKeystroke-0.001.zip) &n […]
分類: coding
C++/asm 混合程式設計 __asmC++/asm 混合程式設計 __asm
關鍵字 __asm 會叫用內嵌組合語言,而且可以出現在 C 或 C++ 語句合法的任何位置。 C […]
C/C++混合程式設計 #ifdef __cplusplus extern “C” {…}C/C++混合程式設計 #ifdef __cplusplus extern “C” {…}
C++ 編譯後庫中函式名會變得很長,與 C 生成的不一致! #if defined(__cplusplus)| […]
C++ #error 的使用方法C++ #error 的使用方法
#error 指示詞會在編譯時期發出使用者指定的錯誤訊息並結束編輯。 C++ 使用例一: #if !defin […]
ATL and MFC String Conversion MacrosATL and MFC String Conversion Macros
SourceType/DestinationType &n […]
WINVER & _WIN32_WINNT macro valuesWINVER & _WIN32_WINNT macro values
Visual C++ no longer supports targeting Windows 95, Win […]
CString 與 std::string std::wstring 之間的轉換CString 與 std::string std::wstring 之間的轉換
CString to std::string 簡單方式: CString cs("Hello&quo […]
NirSoft sample codeNirSoft sample code
有一些不錯的 C++ 範例! http://www.nirsoft.net/code_samples.html […]
_MSC_VER macro values_MSC_VER macro values
MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015) MSVC+ […]
check string as valid filenamecheck string as valid filename
bool ContainsInvalidChars(const CString& filename) […]