Hi group,
I have two application that need to communicate with each other, one
written in C++ and the other in VB.NET. To communicate, I use
"SendMessage" API to send message from C++ app to VB.NET app. But I
don't know why the RegisterMessage API return different value for the
same message string in C++ and VB.NET???
This is the code segment:
C++:
UINT nFoo = RegisterWindowMessage(_T("ExtraMessage"))
VB.NET:
Dim nBar As Int32
Private Declare Function RegisterWindowMessage Lib "user32" Alias
"RegisterWindowMessageW" (ByVal lpString As String) As Integer
nBar = RegisterWindowMessage(_T("ExtraMessage"))
But the nBar is alway differ from nFoo!!!
Does anyone know the reason why?
I'm using VS.NET 2003, all apps is compile with unicode.
Thanks,