In addition to the existing Windows handle types such as HWND, HDC, HBRUSH, and so on, WINDOWS.H defines the following new handle types. They are particularly important if STRICT type checking is enabled, but you can use them even if you do not define STRICT.HINSTANCE是什么类型的数据类型?在MFC程序中能够识别吗?下面的源代码:
------------------------
HINSTANCE mydll_handle;
mydll_handle=NULL;
------------------------
在编译的时候报错:
error C2501: 'mydll_handle' : missing storage-class or type specifiers
是为什么?
------------------------
HINSTANCE mydll_handle;
mydll_handle=NULL;
------------------------
在编译的时候报错:
error C2501: 'mydll_handle' : missing storage-class or type specifiers
是为什么?
它的具体定义 根据宏定义的不同而不同
就象你写的 如果你定义了STRICT (#define STRICT)
我从windef.h看到的结果是HINSTANCE为一个 struct { int unused; }类型的指针
如果没有定义STRICT 那么HINSTANCE是一个void *
(具体看winnt.h和windef.h)