MessageBox related - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

MessageBox related

Hi,
I define a variable as
char szMessage[255] = "Hi there";
and use this in MessageBox as
MessageBox(hWnd,szMessage,_T("Test"),MB_OK);
when i do this step i get a Invalid cast error
so i write it as
MessageBox(hWnd,LPCTSTR(szMessage),_T("Test"),MB_OK);
see the second parameter.
When i see this in an Pocket PC emulator a see the message box with special characters.
What should i do?
Sign In or Register to comment.