Corrupted Status Window Message
When I repeatedly run the following code in VS10 debug mode, it behaves as I would expect. Right-clicking executes the expected code and the message in the status bar cycles correctly through the 2 cases. But when I run it as a release, the message is corrupted (I get a load of oriental characters). Making char* rcMess global doesn't help.
The following is the extraxt from WinProc:
//update status bar message
rcMess="Right-click for parallel 1 execution";
rcMess="Right-click for parallel 2 execution";
rcMess="Right-click for serial execution";
SendMessage(GetDlgItem(hWnd,IDC_STATUS),SB_SETTEXT ,2,(LPARAM) (rcMess));