Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » about the using of unicode in win32 platform
|about the using of unicode in win32 platform [message #39016]
||Thu, 07 February 2013 05:40
Registered: September 2009
today I'm thinking about how to deal with commandline parameter,|
and finding that ultimate++ currently using WinMain with LPSTR lpCmdLine parameter.
I think it's better to using unicode via wWinMain with LPWSTR lpCmdLine parameter. I change the macro a little, becoming
#define GUI_APP_MAIN \
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE, LPWSTR lpCmdLine, int nCmdShow) \
UPP::coreCmdLine__() = UPP::SplitCmdLine__(UPP::ToUtf8(lpCmdLine)); \
return UPP::GetExitCode(); \
It works fine for me.
Do you consider about this? I think it's a improvement in internalization.
by the way, is there any official way to get access to argument of execute commandline? I don't know if coreCmdLine__ is the interface for library user.
[Updated on: Thu, 07 February 2013 05:45]
Report message to a moderator
Current Time: Tue Oct 27 17:23:19 CET 2020
Total time taken to generate the page: 0.01275 seconds