Results 1 to 5 of 5

Thread: VC++ not updating the EXE

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    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?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    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;

  4. #4
    Hyperactive Member
    Join Date
    Jun 2001
    Location
    who am I....and why do you want to know where I am?
    Posts
    326
    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

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width