Ahoj,
volám WinAPI funkciu v C++ CLR WinForms naslednovne
MessageBoxA(static_cast<HWND>(this->Handle.ToPointer()),"Hello World","MSG",MB_OK);
Problém mám v tom že to nejde a vyhodí mi to pri kompilacii toto:
Error 1 error LNK2028: unresolved token (0A000011) "extern "C" int __stdcall MessageBoxA(struct HWND__ *,char const *,char const *,unsigned int)" (?MessageBoxA@@$$J216YGHPAUHWND__@@PBD1I@Z) referenced in function "private: void __clrcall WinForms1::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@WinForms1@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) WinForms1.obj
Čo robím zle ?
Ďakujem