调用DLL

 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);
}
posted @ 2012-12-06 15:31  废弃账号  阅读(84)  评论(0编辑  收藏  举报