Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Capture Window Message
Kumar
16y
3.8k
1
Reply
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;
}
}
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
C#.Net
DataGrid in .NET CF 2.0