运行时问题 :
虚接口抽象类 遇到
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.
编译问题:
具体dll函数遇到
DLL 找不到函数编译连接时候。
实际是
DLL _stdcall。
vc
_cdecl 。#ifndef BUDLL
#define BUPUB_API
#else
#ifdef BUPUB_EXPORTS
#define BUPUB_API __declspec(dllexport)
#else
#ifdef _MSC_VER
#define BUPUB_API __declspec(dllimport)
#else
#define BUPUB_API
#endif
#endif
#endif
class BUPUB_API IMDListener{
#undef BUPUB_API
http://stackoverflow.com/questions/142644/weird-msc-8-0-error-the-value-of-esp-was-not-properly-saved-across-a-function