dll调用
来源:互联网 发布:js高德地图轨迹清除 编辑:程序博客网 时间:2024/04/30 16:52
void CSetupDlg::OnSetupBtn()
{
// TODO: Add your control notification handler code here
typedef void (*PFUN)();
HMODULE hModule = ::LoadLibrary(_T("VnetSetupDLL.dll"));
if(hModule == NULL)
{
::FreeLibrary(hModule);
AfxMessageBox(_T("1"));
return ;
}
PFUN newfun = (PFUN)::GetProcAddress(hModule,"OnButton1");
if(newfun == NULL)
{
::FreeLibrary(hModule);
AfxMessageBox(_T("2"));
return ;
}
newfun();
::FreeLibrary(hModule);
}
{
// TODO: Add your control notification handler code here
typedef void (*PFUN)();
HMODULE hModule = ::LoadLibrary(_T("VnetSetupDLL.dll"));
if(hModule == NULL)
{
::FreeLibrary(hModule);
AfxMessageBox(_T("1"));
return ;
}
PFUN newfun = (PFUN)::GetProcAddress(hModule,"OnButton1");
if(newfun == NULL)
{
::FreeLibrary(hModule);
AfxMessageBox(_T("2"));
return ;
}
newfun();
::FreeLibrary(hModule);
}
- dll调用
- 调用DLL
- 调用DLL
- DLL调用
- DLL调用
- dll调用
- 调用DLL
- 调用dll
- 调用dll
- DLL调用
- dll调用
- Dll调用
- .dll调用
- 释放DLL 调用DLL
- DLL专题之Dll调用
- JNI中dll调用dll
- QT生成DLL,调用DLL
- 什么是DLL,如何调用DLL
- ARM的商业模式是如何炼成的?
- PCIe设备,功能,总线
- 使用图片创建不规则窗体 windows sdk
- 关于No Cortex-M Device found in JTAG chain...出现的问题
- 最佳Linux服务器发行版
- dll调用
- 一个好用的编码类
- 精通UIPasteboard 粘贴板
- NYOJ 10 Skiing 解题报告
- MPI_Gatherv函数的使用
- error while loading shared libraries 错误解决办法总结,
- c++出错问题解析
- 10幅图告诉你Pinterest的魅力所在
- Oracle数据库的十种重新启动步骤