我正在用VisualC++,WinForms,VisualStudio2022创建一个GUI应用程序出现以下错误:ErrorC2731 'WinMain': function cannot be overloaded
包含库本身是为了提供将变量的System::String^类型转换为std::string的机会,下面的字符串转换解决方案来自用户问题在于它需要产生错误的#include <msclr\marshal
into the console}Error LNK11202015\Projects\Render Engine\Debug\Render Engine.exe
Error LNK2019 unresolved external symbol _WinMainUsers\kamaldeep rai\documents\visual studio 2015\Projects\Rend
我正在努力使我的代码尽可能完美,我已经清除了所有错误和(其他)警告。我只剩下这两个:
Warning C28253 Inconsistent annotation for 'WinMain': _Param_(2) has 'SAL_null(__no)' on thisWarning C28252 Inconsistent annotation for 'WinMain': _Param_(2) has 'SAL_null(__maybe)' on the