我建立了一个windows窗体程序,里面添加了CPP 、H
MessageBox(0, d,_T("Error"),0);inject.obj : error LNK2028: 无法解析的标记(0A00002E) "extern "C" int __stdcall MessageBoxW(struct HWND__ *,unsigned short const *,unsigned short const *,unsigned int)" (?MessageBoxW@@$$J216YGHPAUHWND__@@PBG1I@Z),该标记在函数 "extern "C" int __clrcall MessageBox(struct HWND__ *,unsigned short const *,unsigned short const *,unsigned int)" (?MessageBox@@$$J0YMHPAUHWND__@@PBG1I@Z) 中被引用
inject.obj : error LNK2019: 无法解析的外部符号 "extern "C" int __stdcall MessageBoxW(struct HWND__ *,unsigned short const *,unsigned short const *,unsigned int)" (?MessageBoxW@@$$J216YGHPAUHWND__@@PBG1I@Z),该符号在函数 "extern "C" int __clrcall MessageBox(struct HWND__ *,unsigned short const *,unsigned short const *,unsigned int)" (?MessageBox@@$$J0YMHPAUHWND__@@PBG1I@Z) 中被引用网上看到的是什么wchar是内部类型的问题,但是我又按照网上的改了。把“把wchat_t视为内置类型”设置为“否”了。
字符集是使用 unicode 的。真的不知道是那里的问题。