Hi Pedro, > From what I remember the last time we were looking into Winmain, msvc > doesn't parse and fill __argc/__argv with real values unless you use the > mainCRTStartup -> main entry point. > Which means that your WinMain will always return 0 - if it builds. Does > it build with MSVC?
I was assuming this would work the same as mingw32, where __argc and __argv return correct values from my WinMain(). But I have confirmed using Embedded Visual C++ that the behaviour is how you describe on Mobile devices. The lpCmdLine parameter from WinMain() provides the given args, but '__argc' just returns zero. Annoying, but at least I can work around this now I know where the problem is. Thanks. :) -- Matt. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel