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); }