Loading
submit to reddit
June 17, 2013, 11:00:30 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome!
 
   Forum Home   Help Search Forum Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: PLEASE! Need a little help!  (Read 1050 times)
hiddepolen
Newbie
*
Posts: 2


« on: October 29, 2010, 01:25:37 PM »

Hi everyone!

I was making a Windows 32 API, and I ran into some strange thing. When compiling, no error popped up, but when I clicked the About button in my program, or any other button that should pop up a dialog box, nothing showed, and my window was unresponsive.
However, when I first did ANY other action, like draw some lines in my window, ANYTHING, everything went right... All messages popped up, just like they should.

Please help a little here, I've included some of my code. (My Dialog Box, and my whole file in the attachment.)
Thanks in advance!

Code:
case IDM_ABOUT:
int iMes = MessageBox (hwnd, L"Versie: 3.0", L"About", MB_YESNO | MB_ICONQUESTION);
switch (iMes) {
case IDYES:
MessageBox (hwnd, L"YES!", L"YES", MB_ICONASTERISK);
break;
case IDNO:
MessageBox (hwnd, L"NO!", L"NO", MB_ICONASTERISK);
break;

* WinMain.cpp (5.3 KB - downloaded 83 times.)
Logged
Deivi Taka
Guest
« Reply #1 on: January 10, 2011, 11:54:38 AM »

I noticed two things,, i don't know....
First you used L"..."  .... maybe it should be _L"..."
Second you haven't type "}" in the end...
I don't know,, i hope it helps..
Logged
hiddepolen
Newbie
*
Posts: 2


« Reply #2 on: January 10, 2011, 12:02:47 PM »

Thnx for the reply!

I've already solved it, it was an external error, within an inlcluded file.
Thnx anyway...

Cheers!
Logged
Deivi Taka
Guest
« Reply #3 on: January 10, 2011, 12:30:40 PM »

I knew it was a little late for the response, but i have just joined the forum..
I'm happy u resolve it..
Best wishes..
Smiley
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!