1>testSDKDlg.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int
__cdeclTC_CreateSystem(struct HWND__ *)" (__imp_?TC_CreateSystem@@YAHPAUHWND__@@@Z) referenced in function "protected: virtual int
__thiscallCtestSDKDlg::OnInitDialog(void)" (?OnInitDialog@CtestSDKDlg@@MAEHXZ)
干脆来一段英文解释:
The problem with your project is that you are using a "C" style exported library in your C++ projects. When the compiler generates mangled names for C++ functions, they are different from unmangled names generated by the C compiler and hence the C++ compiler will not be able to link with the methods imported from coredll.lib.
The solution to this problem is - while including the header windbase_edb.h, you can explicitly tell the compiler that all functions included from this header are "C" style functions by changing your inclusion as below.