1 int APIENTRY WinMain(HINSTANCE hInstance, 2 HINSTANCE hPrevInstance, 3 LPSTR lpCmdLine, 4 ...
分类:
编程语言 时间:
2015-08-11 18:04:41
阅读次数:
134
1 #include 2 #include 3 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 ...
分类:
其他好文 时间:
2015-08-09 12:26:05
阅读次数:
161
1 #include 2 #include 3 #include 4 #define PI 3.1415926 5 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 6 LRESULT CALLBACK Wnd...
分类:
其他好文 时间:
2015-08-08 21:17:23
阅读次数:
117
#include?<windows.h>
??HDC?hdc,?hdcMem;
??HBITMAP?hBmp;
??BITMAP?bmp;
??HINSTANCE?hCurInst;//当前应用程序句柄 hdc?=?BeginPaint(hWnd,?&ps);;
hdcMem?=?CreateCompatibleDC(hdc);
Sele...
1 #include 2 #include 3 #include 4 typedef struct Time 5 { 6 int hour, min, sec; 7 }TimeStructure; 8 BOOLEAN InitWindowClass(HINSTANCE...
分类:
其他好文 时间:
2015-08-07 23:44:36
阅读次数:
229
1 #include 2 #include 3 #include 4 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 5 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM,...
分类:
其他好文 时间:
2015-08-07 18:40:14
阅读次数:
129
1 #include 2 #include 3 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 ...
分类:
其他好文 时间:
2015-08-07 00:05:25
阅读次数:
184
bool GetAcadPath(CString &acadPath){DWORD dwRet=:GetModuleFileName(acedGetAcadWinApp()->m_hInstance,acadPath.GetBuffer(_MAX_PATH),_MAX_PATH);acadPath....
分类:
其他好文 时间:
2015-07-31 17:38:16
阅读次数:
154
下例示范如何设定DLL,使之支持TLS.
#include
//This is the shared slot
static DWORD gdwTlsSlot;
BOOL DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID lpReserved)
{
LPVOID lpData;
UNREFERENCED_PARAMETER(hin...
分类:
编程语言 时间:
2015-07-31 13:02:34
阅读次数:
114
在VC++6.0环境中创建win32程序
选择第三个这时可以运行看到hello world了。
程序解析:
#define MAX_LOADSTRING 100 \\定义最大字长
HINSTANCE hInst; \\当前进程资源的句柄
TCHAR szTitle[MAX_LOADSTRING]; \\窗口上方显示的标题
TCHAR szWind...