随笔分类 - Win32
摘要:注册、卸载DLL,一般命令写在bat文件中,下面以注册、卸载SWFToImage.DLL为例。 1、注册文件(Install.bat)内容: REM copying files to the system folder COPY SWFToImage.dll %windir%\system32 RE
阅读全文
摘要:#define __FLAG__#ifndef __FLAG__#define DEST str1#else#define DEST str2#endifconst_char_p str1[3]={_T("1"),_T("2"),_T("3")};const_char_p str2[3]={_T("4"),_T("5"),_T("6")};const_char_p * str = DEST;const_char_p s = str[0];const_char_p s1 = s
阅读全文
摘要:// crt_sprintf.c// compile with: /W3// This program uses sprintf to format various// data and place them in the string named buffer.#include int main( void ){ char buffer[200], s[] = "computer", c = 'l'; int i = 35, j; float fp = 1.7320534f; // Format and print various data: j = sp
阅读全文
摘要:WNDPROC wpOrigEditProc; LRESULT APIENTRY EditBoxProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { HWND hwndEdit; switch(uMsg) { case WM_INITDIALOG: // Retrieve the handle to the edit control. hwndEdit = GetDlgItem(hwndDlg, ID_EDIT); // Subclass the edit control. wpOrigEditPro...
阅读全文