D
dragonslayer008
I moved some unmanaged C++ code into a C++/CLI project. The unmanaged
code makes some Win32 API calls. I thought as long as I kept the API
calls in a native class, it would integrate seamlessly. However, I am
getting a whole bunch of linker errors with regards to the API calls:
Example:
error LNK2028: unresolved token (0A00001A) "extern "C" int __stdcall
MessageBoxA(struct HWND__ *,char const *,char const *,unsigned int)" (?
MessageBoxA@@$$J216YGHPAUHWND__@@PBD1I@Z) referenced in function
"public: void __clrcall D3DException::showMsg(void)" (?
showMsg@D3DException@@$$FQAMXXZ)
code makes some Win32 API calls. I thought as long as I kept the API
calls in a native class, it would integrate seamlessly. However, I am
getting a whole bunch of linker errors with regards to the API calls:
Example:
error LNK2028: unresolved token (0A00001A) "extern "C" int __stdcall
MessageBoxA(struct HWND__ *,char const *,char const *,unsigned int)" (?
MessageBoxA@@$$J216YGHPAUHWND__@@PBD1I@Z) referenced in function
"public: void __clrcall D3DException::showMsg(void)" (?
showMsg@D3DException@@$$FQAMXXZ)