动态加载dll
2024-10-21 05:48:44
extern "C" MMUPDATENOTIFY_IMPEXP bool _cdecl NotifyThrift(char* chThriftIp, char* chPor)
HINSTANCE hInst;
CString strPath = _T("E:\\XXX\\MmUpdateNotify.dll");
hInst = LoadLibrary(strPath);
if(hInst != NULL)
{
typedef bool(*Proc)(char* strIp, char* strPort);
Proc p = (Proc)GetProcAddress(hInst, "NotifyThrift");
if(!p)
{
AfxMessageBox(_T("获取地址失败"));
return;
}
bool bVal = p("127.0.0.1", "9090");
}
FreeLibrary(hInst);
最新文章
- PHP发送和接收POST数据
- 反射中getMethods 与 getDeclaredMethods 的区别
- 老生常谈的Hibernate二级缓存
- Codeforces Round #248 (Div. 2)C 题
- <;转>;Python运行的17个时新手常见错误小结
- Spark系列(五)Master主备切换机制
- (转载)研究openvswitch的流量模式
- [转]Android DPAD not enabled in AVD
- 一些关于poi导入的样例
- Spring+SpringMVC+MyBatis+easyUI整合基础篇(九)版本控制
- [LeetCode] 链表反转相关题目
- Windows Server2003本地用户的批量导入和导出(转)
- Ajax——从服务器获取各种文件
- hihoCoder 1233 : Boxes(盒子)
- Centos7下python3安装pip-9.0.1
- Educational Codeforces Round 25 B. Five-In-a-Row
- unity接入安卓sdk (unity调用安卓工程)
- Python爬虫模拟登录带验证码网站
- PL/SQL TOAD 不安装Oracle客户端连接数据库的方法
- 利用find同时查找多种类型文件