1、运行时碰到下面错误:
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.
这个错误通常是因为调用方式不一致导致的错误。尤其是DLL调用时,很容易出现这个问题
解决方法:在定义函数调用的时候,一定要注明调用方式!如导入函数的 declspec(dllimport),导出函数declspec(dllexport)。
2、编译时遇到下面错误:
F:\Program Designer\Program\c++\CloseWindow\CloseError.rc (70): error RC2176 : old DIB in res\ProgramDefaults.ico; pass it through SDKPAINT
这是由于载入的资源文件(ProgramDefaults.ico)是真彩色,即3个字节的,而VC6.0只支持256色,因此出现错误!