[RESOLVED] what is wrong ???
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: [RESOLVED] what is wrong ???

  1. #1
    Join Date
    Aug 2010
    Posts
    8

    [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

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,844

    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.

  3. #3
    Join Date
    Aug 2010
    Posts
    8

    Angry 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

  4. #4
    Join Date
    Aug 2010
    Posts
    8

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center