Something like WM_COPYDATA

  • Thread starter Thread starter Patrick Weidener
  • Start date 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?
 
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.
 
Back
Top