|
-
Jul 28th, 2001, 06:25 PM
#1
Thread Starter
Frenzied Member
VC++ not updating the EXE
Okay I know why that code I posted before won't work. The EXE isn't beinig updated. I took out my messagebox code and a messagebox still shows up. I changed the interface....it's still the same. I have built it, run it, compiled.....everything, no luck. Whats wrong?
-
Jul 28th, 2001, 07:00 PM
#2
Monday Morning Lunatic
Select "Rebuild All" and see if that works. Also, make sure you're running the correct .exe file for the project configuration you've built
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 28th, 2001, 07:13 PM
#3
Thread Starter
Frenzied Member
rebuild all worked...odd.....but now I just have one question...this won't work!!!!!!! 
Code:
BOOL click1=true;
BOOL click2=false;
case WM_COMMAND:
for(i=1;i<=8;i++) {
for(a=1;a<=8;a++) {
if(LOWORD(wParam) == BN_CLICKED && (HWND)lParam == Board[a][i]) {
if(click1==true && click2==false) {
MessageBox(hWnd, "Click1", "click", MB_OK);
click1==false;
click2==true;
break;
}
if(click1==false && click2==true ) {
MessageBox(hWnd, "Click2", "click", MB_OK);
click1==true;
click2==false;
break;
}
}
}
}
return 0;
-
Jul 29th, 2001, 02:56 PM
#4
Hyperactive Member
what dosen't it do, it looks like it should work to me

All hail the Idiot-no, not Bill Gates, although, isnt he is so wonderful, so is microsoft! HEY YOU, Stop laughing
In case anyone didnt get the point...I HATE BILL GATES
-
Aug 28th, 2001, 09:08 AM
#5
click1 == FALSE
there is the failure, since you use this syntax to assign values
don't forget: = -> assign operator
== -> compare operator
Also, I recommend placing the test for BN_CLICKED outside the for-loops, so it doesn't loop for every WM_COMMAND message there is.
All the buzzt
CornedBee
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|