现在我把
CMT81120Dlg.cpp
#define WM_MY_MESSAGE (WM_USER + 100)

LPTSTR lpstr;
lpstr = GetCommandLine();
CString strParam = lpstr;
long lTemp = atol(lpstr);
m_mWnd = (CWnd*)lTemp;
m_mWnd->PostMessage(WM_MY_MESSAGE,123,456);修改如下:
CMT81120Dlg.cpp
#define WM_MY_MESSAGE (WM_USER + 100)

LPTSTR lpstr;
lpstr = GetCommandLine();
CString strParam = lpstr;
long lTemp = atol(strParam);
HWND hWnd;
hWnd = (HWND)lTemp;
::SendMessage(hWnd, WM_MY_MESSAGE, 123, 456);运行后报的错是:
Debug Assertion Faild!
Program:..\Microsoft  Visual Studio\My Projects\MT81110\Debug\MT81110.exe
File:appuil.cpp我一头雾水,请各位指点