Tim Peters: > behavior between 98SE and XP in VC6. Typical Windows docs: > > The reason that main and WinMain cannot return Unicode strings is > that argc, argv, and lpCmdLine use the LPSTR data type for > parameters, not the LPSTR data type. The GetCommandLine function > can be used to access Unicode strings, because it uses the LPSTR > data type. > > I suppose some of that might be correct <wink>. Well, if you'd just upgrade to VS .NET 2003, a mere 8 hour upgrade process over VS .NET 2002 for me: > The reason that main and WinMain cannot return Unicode strings is > that argc, argv, and lpCmdLine use the LPSTR data type for > parameters, not the LPTSTR data type. The GetCommandLine function > can be used to access Unicode strings, because it uses the LPTSTR > data type. Two extra easily-overlooked characters and it makes some more sense. Although it still contains errors, it at least touches the point it is trying to make. Neil
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4