Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: hkBattousai on August 13, 2009, 03:54:19 pm

Title: MessageBox() does not pop up a message box
Post by: hkBattousai on August 13, 2009, 03:54:19 pm
This one works with no problem:
Code
wxMessageBox(_("Text"), _("Title"));

This one has no compile or run-time error but does nothing, no message box is displayed:
Code
MessageBox(*(HWND *) KeyloggerFrame::GetHandle(), _("Text"), _("Title"), MB_OK);

Have any idea why the second one fails?
Title: Re: MessageBox() does not pop up a message box
Post by: MortenMacFly on August 13, 2009, 05:00:06 pm
Have any idea why the second one fails?
Unrelated to Code::Blocks.
-> Violates our forum rules.
-> Topic locked.