在MFC中用CreateDialogParam来创建一个非模块对话框,但不知如果取得hInstance,
解决方案 »
- 怎样在聊天框中插入物品信息的链接?
- 目前,在.net,win7,上网本,web应用等大量出现的今天,MFC是一个什么趋势?
- 制做vc安装包是的ocx文件的问题
- 软件加密问题急!有VB 源码转成VC 源码?
- 问版主: 无违规贴,为什么我的信誉分会下降??
- 急呀...为什么同一文档打印多份的结果不一样?
- MS CHART 控件用哪个函数设置他的show markers和 series in rows属性
- 各位老大,哪有vc6下载啊,谢谢呢,以前贴子里的都下不鸟呢啊,天网找的又都要密码,唉
- VC下面用ODBC向SQL Server2000中写入10000条1K大小的记录,用时约5分钟
- 关于C语言中定义结构变量出错(急用)
- 新手求助:接受年龄输入的界面是应该使用combobox吗?
- 求助
HINSTANCE AFXAPI AfxGetInstanceHandle( );
Return Value
An HINSTANCE to the current instance of the application. If called from within a DLL linked with the USRDLL version of MFC, an HINSTANCE to the DLL is returned.Res
AfxGetInstanceHandle always returns the HINSTANCE of your executable file (.EXE) unless it is called from within a DLL linked with the USRDLL version of MFC. In this case, it returns an HINSTANCE to the DLL.Example
Copy Code
// Print the application instance handle to the debugger output window.
TRACE("Application instance handle is 0x%0X\n", AfxGetInstanceHandle());
只用使用了 MFC 就可以在任意位置调用该函数获得指定的句柄