Re: WM_COPYDATA
<jimbo@xxxxxxxxxx> wrote in message
news:1189139876.636916.80920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I would like to send an array of strings or a stringlist from one app
to another. I'm using Zarko Gajic's WM_COPYDATA example.
http://delphi.about.com/od/windowsshellapi/a/wm_copydata.htm?rd=1
How would I adapt this code to send a TStringList or array of strings
declared in Sender app to Receiver app. How do I handle it? types
typecasting access etc. TIA
For a stringlist, send its Text property. That's all the lines
concatenated together, with end-of-line sequences (CR LF) to
separate them. On the receiving end, assign the text to the Text
property of the receiving TStrings object and it will split it
into lines again.
For an array of strings, you can do the same thing, only you have to
write the code yourself.
Groetjes,
Maarten Wiltink
.
Relevant Pages
- Re: K&R2 Secition 5.9 - major blunders
... Each element of b doesn't point to a 20 element array of int. ... This mistake is crucial because ... my explanation is really the qualities of something else: ... > The use of the array of pointers is to store the strings. ... (comp.lang.c) - Re: K&R2 Secition 5.9 - major blunders
... Each element of b doesn't point to a 20 element array of int. ... This mistake is crucial because ... my explanation is really the qualities of something else: ... > The use of the array of pointers is to store the strings. ... (comp.lang.c) - Re: Returning array of strings through callback from unmanaged to
... Is the array of strings a jagged array or fixed length array? ... It is imperative that I am able to return the array of strings from the ... I have control over how many strings I want the unmanaged code to return ... What I want to accomplish is to pass a callback function to unmanaged ... (microsoft.public.dotnet.framework.compactframework) - Re: attempting to return values from array from w/in a function
... What I get is an array w/ only the most recent array entry. ... I am new to PHP & do not have formal scripting ... you end up comparing strings, but the test you mean probably is simply: ... case 1: {codeblock} ... (comp.lang.php) - Re: K&R2 Secition 5.9 - major blunders
... Would changing 'point to a' to 'point into a' twenty element array be ... > arrays of pointers is to store character strings of diverse ... comparison between what was really happening (arrays of pointers to ... pointer to a string(this probably would confuse beginners)" and ... (comp.lang.c) |
|