|
From: xavier <x.p...@fr...> - 2004-08-18 18:24:59
|
good Per !
The dev-cpp community will appreciate your example, sure ..
=20
I know it could be a stupid question.
But those like me are used to use the usual "main(argc, argv)" to pass=20
arguments.
And with WinMain (almost it is a windows implementation) it is not so=20
evident for using arguments.
1- LPWSTR* Args; (in case of winmain)
and
2- char *argv[]; (in usual way)
How do you convert "Args" to "char *argv[]" next ?
for doing a MessageBox() for example.
Xavier
Per Westermark a =E9crit :
>Why do you assume that an old mail from 2002 should get more answers? If=
a
>mail isn't answered within a couple of days it is forgotten!
>
>KOWSTR CommandLine =3D L"A command line to process 1 2 3 4";
>LPWSTR* Args;
>int NumArgs;
>
>Args =3D CommandLineToArgW(CommandLine,&NumArgs);
>if (p) {
> for (int i =3D 0; i < NumArgs; i++)
> std::cout << Args[i];
>}
>
>There is nothing magic with the function. It just handles a wide-charact=
er
>text line and split it into individual parameters identical to the input
>to wmain of a unicode application.
>
>/Per W
>
>On Wed, 18 Aug 2004, Xavier wrote:
>
> =20
>
>>Email Archive: dev-cpp-users (read-only)
>>
>>From: <abresan@gm...>
>>how do I use the "CommandLineToArgvW()" Funktion
>>2002-04-20 13:41
>>
>>
>>
>>
>> can anyone give an example
>>
>> thanks
>>
>>still no examples !!! ??? (since 2002)
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
>>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
>>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
>>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>>_______________________________________________
>>Dev-cpp-users mailing list
>>Dev...@li...
>>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>>
>> =20
>>
>
>
>
> =20
>
|