Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accept Data sended with WM_COPYDATA

Status
Not open for further replies.

LuckyLuke

Programmer
Mar 28, 2001
188
NL
Hi,

I made a C++ DLL and how do I accept data I send from the DLL to my executable made in Visual Basic?

LuCkY
 
Have you considered using a callback to a VB bas module? Pass the address of a public function using the AddressOf operator to your C++ DLL and then when you are ready to send the data back to VB, just call that address. You will probably need to use ByVal on all of the parameters being passed in however . . . - Jeff Marler B-)
 
I had no idea that was possible, could you give me a little example?
 
I tried it, but it will spoil the effect on the systemwide hook...

I don't know how you think it should be, but I don't know how to do that...
 
Could you list the data types that you need passed back to VB and I'll try to give you an example for the callback that you are going to require. - Jeff Marler B-)
 
It would be the most neat if you could send back wParam and lParam...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top