i was trying to extract text from an EDIT control and display it in a MessageBox in win32, the code compiles and runs but whenever i click the button to do the task, the program stops working and crashes, i tried to trace it on my own and somehow figured out that the MessageBoxEx made the crash, here is the fragment of the code,
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case IDB_BTN1:
{
LPTSTR str
Edit_GetText(hEdit1,str,255);
MessageBoxEx(hwnd,str,"INPUT",MB_ICONINFORMATION,0);
break;
}
}
return 0;
}
how do i fix this?