兩個錯誤:
1. 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的項目屬性中C/C++->Code Generation->Basic Runtime Checks的屬性改為Default
檢視一下你的dll中的函數,如果函數傳回是采用某個局部變量,需要把這些傳回的局部變量都聲明為static
問題解決!!