User Profile

Collapse

Profile Sidebar

Collapse
oliverikawood
oliverikawood
Last Activity: Mar 11 '09, 04:56 AM
Joined: Mar 1 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi All,

    I have managed VirtualAllocEx. Before I declared this function as Private. Then when I moved it to Module file and changed it to Public, I don't get 0 anymore for bufferMem. Also I need to set lpAddress as ByVal. Otherwise, the length of controlName that given is twice than correct length (I don't know exactly how this happens).

    Code:
    Declare Function VirtualAllocEx Lib "kernel32" _
    ...
    See more | Go to post

    Leave a comment:


  • How can I automate Winforms of .NET in VB6?

    I want to get the ControlName of .NET properties in VB6 code, just like described in this article. But unfortunately, it doesn't work for me. I always got 0 for bufferMem.
    Code:
            bufferMem = VirtualAllocEx(processHandle, 0, size, 
            MEM_RESERVE Or MEM_COMMIT, PAGE_READWRITE)
            If bufferMem = 0 Then
                Error Err, "VirtualAllocEx API Failed"
            End If
    What am I doing wr...
    See more | Go to post
No activity results to display
Show More
Working...