- 8
- 0
- 约1.92万字
- 约 21页
- 2021-04-12 发布于天津
- 举报
精品文档
精品文档
PAGE
PAGE #欢迎下载
精品文档
精品文档
PAGE
PAGE #欢迎下载
C++常用操作函数
载入动态库
bool LoadDII()
{
HttpDow nDll = LoadLibraryCHTTPDOWNDLL.dll);
if(HttpDow nDll == NULL)
{
MessageBox(O,载?入?动-态?库 a 错洙?误 o! ?,错洙?误 8, MB_OK|MB_ICONWARNING); FreeLibrary(HttpDow nDll);
return false;
}
Sen dComma nd = (Se ndComma ndFu nc)GetProcAddress(HttpDow nDll, Se ndComma nd);
if(Se ndComma nd == NULL)
{
MessageBox(0, GetProcAddress 错洙?误 0! ?, 错洙?误 o, MB_OK|MB_ICONWARNING); FreeLibrary(HttpDow nDll);
return false;
}
return true;
}
卸载动态库
bool FreeDll()
{
FreeLibrary(HttpDow nDll);
Se ndComma nd = NULL;
return true;
}
原创力文档

文档评论(0)