(百分求教)如何调用DLL中的类的成员函数(带参数)??
调用类函数,但是一旦有参数,则容易出错,
如:
extern "C"
void _declspec(dllexport) CTest::Compare(char *s1, char *s2)
{
//Do nothing
}
则运行时,在调用完本函数后,会出一个ASSERT对话框(Release版的话,也会出非法操作)
出错的解释:
Module:
File: i386\chkesp.c
Line:42
The value of ESP was not properly saved across a function call. This is usually a result of calling a functin declared with one calling convention with a function pointer with a different calling convention.
不知道这个问题如何解决呢?//bow