RE: [PATCH 3/6] CMD.EXE: Handle command line as Unicode

2007-05-26 Thread Ann & Jason Edmeades
>> Does wine support this? I initially did it this way copying from >> programs/msiexec >Have a look at programs/uninstaller/main.c. Most likely you need to >add -municode to APPMODE switches in Makefile.in. Thanks Dmitry - 100% accurate, ie it was the -municode option. I'll submit it as a patch

Re: [PATCH 3/6] CMD.EXE: Handle command line as Unicode

2007-05-25 Thread Dmitry Timoshkov
"Ann & Jason Edmeades" <[EMAIL PROTECTED]> wrote: Compile error was: ../../tools/winegcc/winegcc . ../../dlls/winecrt0/libwinecrt0.a(exe_main.o): In function `main': /home/wine/wine/dlls/winecrt0/exe_main.c:48: undefined reference to `WinMain' Does wine support this? I initially did it thi

RE: [PATCH 3/6] CMD.EXE: Handle command line as Unicode

2007-05-25 Thread Ann & Jason Edmeades
> int main (int argc, char *argv[]) > { > + LPWSTR *argvW = NULL; > + int args; > + WCHAR *cmdW = NULL; >If you will start using wmain() instead of main() you get unicode args for >free, and that will help to avoid changing the command line parsing code. Hi, Sorry for the delayed respons

Re: [PATCH 3/6] CMD.EXE: Handle command line as Unicode

2007-05-15 Thread Dmitry Timoshkov
"Jason Edmeades" <[EMAIL PROTECTED]> wrote: int main (int argc, char *argv[]) { + LPWSTR *argvW = NULL; + int args; + WCHAR *cmdW = NULL; If you will start using wmain() instead of main() you get unicode args for free, and that will help to avoid changing the command line parsing code