-
VC++6.0 在程序内注册ActiveX控件的例子源码
VC++6.0 在程序内注册ActiveX控件的例子源码,在程序中动态注册控件到Windows系统中,注册后所依赖该控件的程序才可正常运行。核心代码如下:
//加载ActiveX控件
HINSTANCE hLib = LoadLibrary(lpszDllName);
if (hLib == NULL)
{
TRACE(_T("%s加载失败
"), lpszDllName);
return FALSE;
}
//获得注册函数DllRegisterServer地址
FARPROC lpDllEntryPoint;
lpDllEntryPoint = GetProcAddress(hLib, _T("DllRegisterServer"));
//调用注册函数DllRegisterServer
if (lpDllEntryPoint != NULL)
{
if (FAILED((*lpDllEntryPoint)()))
{
TRACE(_T("调用DllRegisterServer失败
"));
FreeLibrary(hLib);
return FALSE;
}
else
{
FreeLibrary(hLib);
return TRUE;
}
}
else
{
TRACE(_T("调用DllRegisterServer失败
"));
FreeLibrary(hLib);
return FALSE;
}
更多代码请下载本源码包。
- 2022-08-18 20:45:44下载
- 积分:1
-
网吧计费系统源码.
网吧计费系统源码.-Internet Billing System source.
- 2022-01-25 15:06:52下载
- 积分:1
-
两款HTML5 jQuery滑动展开式图片导航菜单
两款HTML5 jQuery滑动展开式图片导航菜单,大家都说是手风琴菜单,因为看上去像展开的菜单像琴键一样,可以折叠展开,基于HTML5和CSS3实现,配合jquery,功能更加强大,动画效果更加流畅自然,而且风格漂亮。
- 2022-04-23 09:50:52下载
- 积分:1
-
China, Japan and South Korea lattice Font Chinese Japanese Korea
中日韩点阵字库 Chinese Japanese Korea-China, Japan and South Korea lattice Font Chinese Japanese Korea
- 2022-07-13 06:43:42下载
- 积分:1
-
Python源码剖析
Python
Python 源码
Python源码剖析
Python
Python 源码-Python source code analysis source PythonPython
- 2022-03-06 00:27:49下载
- 积分:1
-
TMS320F2812(SCH+PCB图)Protel
TMS320F2812(SCH+PCB图)Protel -TMS320F2812 (SCH+ PCB Chart) Protel
- 2022-02-01 23:13:54下载
- 积分:1
-
动态规划解银币问题(C++实现)
动态规划解银币问题(C++实现)-dynamic programming solution Coin (C achieved)
- 2022-08-21 21:15:59下载
- 积分:1
-
用DELPHI编写的聊天程序
用DELPHI编写的聊天程序-prepared with the DELPHI chat program
- 2022-12-08 09:25:02下载
- 积分:1
-
this very good application for face traccking.it contains more and good differnt...
this very good application for face traccking.it contains more and good differnt features.if u rotate face right side it will show the direction for rignt side.if u rotate face left side it will show the direction for left side.-this is very good application for face traccking.it contains more and good differnt features.if u rotate face right side it will show the direction for rignt side.if u rotate face left side it will show the direction for left side.
- 2022-10-12 09:50:03下载
- 积分:1
-
哈夫曼编码,建立哈夫曼树
哈夫曼编码,建立哈夫曼树-Huffman coding, establishing Huffman tree
- 2022-09-14 13:40:03下载
- 积分:1