Hi All,
I'm developing C# smart devices application based on C++ dll.
I'm having problem to capture windows message posted in C++.
Can some one help me to solve this problem? Thanks in advanced.
My C++ codes to capture message. I need similar function to capture in C#.
----------------------------------------------------------------------------------
LRESULT CMobileOperationDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
TCHAR string[1024];
TCHAR *pstring = string;
BOOL ret;
switch (message)
{
case WM_LOGINNETWORK:
wmId = LowWord(wParam);
wmEvent = HiWord(wParam);
if(wmId)//login into network
{
ret = MdmMan.SglMode_GetOperator(pstring);
SetDlgItemText(IDC_STATIC_MODEMSTATUS, pstring);
}
else
{
SetDlgItemText(IDC_STATIC_MODEMSTATUS, _T("Network search..."));
}
break;
}
}
Loading
Replies
Know the answer? Post it — somebody with the same question will find it here.