HINSTANCE类型的变量代表什么意思?

mywangqian007 2002-12-27 11:25:34
HINSTANCE类型是用来定y义什么的?HINSTANCE类型的变量代表什么意思?如:HINSTANCE hInstance
...全文
126 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
mywangqian007 2002-12-27
  • 打赏
  • 举报
回复
up!!
invalid 2002-12-27
  • 打赏
  • 举报
回复
看看help吧。
The WinMain function is called by the system as the initial entry point for a Win32-based application.

int WINAPI WinMain(

HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // pointer to command line
int nCmdShow // show state of window
);


Parameters

hInstance

Identifies the current instance of the application.

hPrevInstance

Identifies the previous instance of the application. For a Win32-based application, this parameter is always NULL. If you need to detect whether another instance already exists, create a named mutex using the CreateMutex function. If the GetLastError function returns ERROR_ALREADY_EXISTS, another instance of your application exists (it created the mutex).
invalid 2002-12-27
  • 打赏
  • 举报
回复
代表进程的实例。
zhanghk 2002-12-27
  • 打赏
  • 举报
回复
进程的实例

13,822

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧