-
August 23rd, 2010, 04:08 AM
#1
[RESOLVED] what is wrong ???
i have 2 exe
exe1 send a string to exe2 via SendMessage function
i'm using Spy++ to find out the address in hexa for a TextBox from exe2 wich must receive the string
the code is:
Public Function fSENDra()
Dim s$, kk
s = gSTRING
kk = CLng(&HC0500) ' find out with Spy++
SendMessage kk, WM_SETTEXT, 0, s
End Function
but look what appear in TextBox from exe2
¼÷d
or
¤ç#
or
ç#
what is wrong with my code
thanks in advance for any sugestion
-
August 23rd, 2010, 08:42 AM
#2
Re: what is wrong ???
for one thing you are not setting your string properly, unless of course gString is a string variable that holds your string data, in which case you would not need K$.
Always use [code][/code] tags when posting code.
-
August 24th, 2010, 03:53 AM
#3
Re: what is wrong ???
i declare gSTRING public, in main module.
but i try diferent syntax for SendMessage function, like:
SendMessage CLng(&HC0500), WM_SETTEXT, 0&, gSTRING
or like a simple test
SendMessage CLng(&HC0500),WM_SETEXT, 0 ,"Hello World"
in fact, no mather what is the gSTRING value, or lenght, i try to send numeric value trugh the another variable wich are declare integer, long, i try to send just strings with diferent lenght, bat all the time i receive the same result, like you see early.
how you see the results is all the time the same, strange and the lenght is the same.
i realy don't know what happend
-
August 24th, 2010, 11:49 AM
#4
Re: what is wrong ???
for who want to know
solution is :
SendMessage CLng(&HC0500), WM_SETTEXT, 0&, ByVal gSTRING
thx @Nytro
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|