سؤال

How can i overload the WinMain() function while using Unicode character set in Visual Studio? Thank you.

Here's the code i am talking about

هل كانت مفيدة؟

المحلول

There is no point in overloading WinMain, this function is called only once at startup. If you want it to work in UNICODE and non UNICODE builds then you should make suse that it will accept wchar_t* and char* for pszCmdLine parameter:

int WINAPI _tWinMain(
   HINSTANCE hInstanceExe,
   HINSTANCE,
   PTSTR pszCmdLine,
   int nCmdShow);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top