现在的位置: 首页 > 综合 > 正文

调用DLL

2018年05月25日 ⁄ 综合 ⁄ 共 251字 ⁄ 字号 评论关闭
 typedef int (*func)();
void CtestDlg::OnBnClickedButton1()
{
// TODO: 在此添加控件通知处理程序代码
HINSTANCE hDllInst = LoadLibrary(L"MSVCP70.DLL");
   
func fc;
fc = (func)GetProcAddress(hDllInst,"SS_LoadIDCLibrary");
CString str;
int n =0;
n = fc();
str.Format(L"%d",n);
AfxMessageBox(str);
}

抱歉!评论已关闭.