markcw #1 This is wrong, you're missing the hwnd parameter:MessageBox(messagetodisplay,title,MB_OK);Try:MessageBox(0,messagetodisplay,title,MB_OK);