Re: call an executable with array of strings parameter
- From: Ali <abdulrazaq@xxxxxxxxx>
- Date: 13 May 2007 08:54:31 -0700
On May 11, 3:01 pm, Ananya <Ana...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I am calling a Java native executable from a C++ program.
Since the command line arguments of a Java program are an array of strings,
I would like to use an array of strings as a parameter for calling my
executable, not just one string.
However, I am using ShellExecuteEx, and the attribute lpParameters of
ShellExecuteInfo only seems to allow one string.
Can an array of strings be forced for ShellExecuteEx, or is there another
way of calling an executable with an array of strings?
Another reason why I would like an array of strings is that my parameter
contains the colors of all pixels of an image, and it is too slow to make one
string out of that.
Thanks for looking at my question.
Ananya wrote:
Can an array of strings be forced for ShellExecuteEx, or is there another
way of calling an executable with an array of strings?
Well! i would prefer to use the windows messaging system rather
passing even such a long string to another app. And as pointed by
Alexander you got to rethink your design. Windows messaging system is
very robust and passing an array of string would make that solution
potential design option.
For example i would do something like following:
0) A app wants to send a damn long long string, so i'l put all the
things on messaging system (wm_copy_data , wm_set_text etc. etc.)
1) B app will hook the messages and can process all the input as it
arrives or just wait to gather all the stuff coming in.
ali
ali
.
- Prev by Date: Re: Layers and Protocols Involved
- Next by Date: Re: call an executable with array of strings parameter
- Previous by thread: Re: call an executable with array of strings parameter
- Next by thread: Re: call an executable with array of strings parameter
- Index(es):
Relevant Pages
|