Something like WM_COPYDATA

  • Thread starter Patrick Weidener
  • Start date
P

Patrick Weidener

I need to send data from my C# window to a VB6 window, and I want to do
it with WindowMessages.
The data I have is a struct that contains (among other things),
..positionX and .positionY.
What would be the easiest and fastest way to send these coordinates to
my VB6 window from within C#, please?
 
P

Pavel Minaev

Patrick Weidener said:
I need to send data from my C# window to a VB6 window, and I want to do it
with WindowMessages.
The data I have is a struct that contains (among other things), .positionX
and .positionY.
What would be the easiest and fastest way to send these coordinates to my
VB6 window from within C#, please?

Well, if you insist on doing it via WMs, then why not just use WM_COPYDATA,
as your post subject says? It's not like you can't use SendMessage from C#
via P/Invoke.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top