Sending message

  • Thread starter Thread starter Mhaxx
  • Start date Start date
M

Mhaxx

Is it possible to send a message from eVC++ (DLL) to VB.NET?

This code doesn't work:
HLOCAL abc = LocalAlloc(LPTR, 12345);
result = SendMessage(m_hWnd, WM_COPYDATA, 0, (LPARAM) abc);
LocalFree(abc);

Mhaxx
 
Yes. Receiving it requires some effort. Look at the OpenNETCF
ApplicationEx class and the IMessageFilter for an example.

Paul T.
 
Define "doesn't work".

Well, don't worry.. solved like this:

SendMessage(m_hWnd, 0x8123, 0, 0);

since I didn't need to pass data but only to send a message.

Mhaxx
 
Back
Top