-
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
-
Untitled2
说明: 二自由度平顺性分析,包括车身加速度,悬架动挠度,轮胎动载等,建立双质量二自由度模型(Two degrees of freedom ride analysis, including body acceleration, suspension deflection, tire dynamic load, etc., establish a dual mass two degree of freedom model)
- 2019-06-19 10:00:15下载
- 积分:1
-
c8051的程序源码 功能:chanel:为通道地址,范围0-DAC0;1-DAC1
// shuju: 16位无符号数,实际12位,对齐方式由DACxC...
c8051的程序源码 功能:chanel:为通道地址,范围0-DAC0;1-DAC1
// shuju: 16位无符号数,实际12位,对齐方式由DACxCN控制-C8051-source function of the procedure: chanel: as the channel address, the scope of 0-DAC0 1-DAC1// shuju: 16 bit unsigned number, the actual 12, alignment control by DACxCN
- 2022-09-14 04:15:03下载
- 积分:1
-
HTML5结合jQuery实现三维折叠效果的图片展示
HTML5结合jQuery实现三维折叠效果的图片展示,打开页面后,拖动网页上的滚动条,当上一张图片快看不到、下一张快显示的时候,出现三维的图片效果,这在HTML5下似乎很容易就实现,测试请使用火狐或Chrome浏览器,IE8下无效果。
- 2023-07-24 10:30:05下载
- 积分:1
-
nys
上架即可运营的牛元帅完整源码,完美搭建成功,无任何bug(Full source of the marshal Marshal that can be operated on the shelf)
- 2018-01-14 16:43:20下载
- 积分:1
-
VxWorks下设备驱动程序及BSP开发指南
说明: To learn VxWorks driver and boot learning, this article can still see, the introduction is good
- 2020-12-15 20:02:16下载
- 积分:1
-
TOL_ScriptingTool_ACR122
ACR122U介绍,测试文件,可直接使用, pdf详细说明, 常用脚本等等(Inducetion of ACR122U)
- 2020-06-17 09:40:01下载
- 积分:1
-
程序目的: 输入一个任意大小的迷宫,用栈求出一条走出迷宫的路径,并 显示在屏幕上。 程序实现: 可以实现载入迷宫和保存迷宫,附带文件中有4个测试迷宫路径的 文件...
程序目的: 输入一个任意大小的迷宫,用栈求出一条走出迷宫的路径,并 显示在屏幕上。 程序实现: 可以实现载入迷宫和保存迷宫,附带文件中有4个测试迷宫路径的 文件test1~4.dd。请将这些文件拷贝到TC当前目录下,或者在载 入时写明完全路径。由于屏幕大小的限制,当用户自己输入迷宫 时一定要注意:迷宫大小是有限制的,不小于4*3,不大于30*20。 否则会出现错误信息。输入开始时全是墙,用上下左右键移动, 用Del键删除墙,形成通路,用Enter键添加墙。输入结束时可以 将迷宫保存下来,以dd为扩展名。输入完毕时用F9键来得到结果, 找到路径时,屏幕下方会出现Path found,否则出现Path not found。 程序经Turbo C 2.0编译调试成功。运行时不用添加任何运行库。 不可以在VC上编译。-procedures purpose : to bring in a maze of arbitrary size, with a stack get out of the maze of trails and on the screen. Program : can achieve and preserve the printed maze maze, the accompanying documents were four test maze of trails to document test1 4.dd. I would be grateful if those files are copied to the TC current directory, or in the state when fully contained path. Due to restrictions on the size of the screen when the user input labyrinth must pay attention to : the size of the maze is a restriction, not less than 4* 3, not more than 30* 20. Otherwise there will be a wrong message. At the beginning of the importation of a
- 2022-08-06 12:51:19下载
- 积分:1
-
C++初学者练习,函数编制
C++初学者练习,函数编制-C beginners practice, the preparation of function
- 2023-05-25 23:00:03下载
- 积分:1
-
GWmatlab
用三维散点数据实现各种三维图像绘制,包括三维散点图、等高线图、伪彩色图等(Realization of 3D Image rendering with 3D scattered Point data)
- 2018-02-27 23:22:03下载
- 积分:1