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色,因此出现错误!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-10-11
  • 2022-03-01
  • 2021-10-23
猜你喜欢
  • 2021-06-12
  • 2022-01-20
  • 2022-12-23
  • 2021-07-08
  • 2021-10-29
  • 2021-09-02
  • 2021-07-31
相关资源
相似解决方案