调用dll中函数的问题
AI00 2006-04-11 09:47:51 函数在dll中声明void GetLpsz(LPSTR lpsz);
调用时
char lpsz[255];
fnGetLpsz( lpsz);//fnGetLpsz为取得的函数指针
最后运行时出现如下错误:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.