我做了一个dll:
extern "C" void PASCAL EXPORT Test(CString f1,CString f2,CString f3 ...)
有9个参数
调用的时候:
HINSTANCE handlerDll=NULL;

typedef void (*Test)(CString f1.....);
Test  test; if(handlerDll==NULL)  
{
handlerDll=LoadLibrary("GZHBDll.dll");
}
test=(Test)GetProcAddress(handlerDll,"Test");

CTestDllDlg testDllDlg;
if(testDllDlg.DoModal()==IDOK)
{
if(handlerDll==NULL)
{
AfxMessageBox("加载动态链接库失败!");
return;
}
test(str1,str2....);
}
handlerDll=NULL; AfxMessageBox("22");我编译没有问题了,运行的时候,test函数可以执行,但是返回的时候,发生了Assert错误,请问各位哪里错了??
这里谢过各位!