Thread: How to run progs in VC++

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    19

    Unhappy How to run progs in VC++

    Hi!

    It's me again. Thanx everyone for the quick reply on my first post. I've gathered some tutorials and downloaded some test files/progs to learn VC++. Now, my problem is that I just can't figure out, how to run them. When I double clicked on the "cpp" file, it showed me the code window, but when I wanted to see the prg running (Shift+F5) either nothing happened or got some error messages regarding some missing files or characters.
    I've allso tried to make one of my own (included dialog and drawn some buttons on it) but... couldn't find a way to implement events (like button_click, mouse_move, etc). In VB, one just have to dblclick the button and the event opens. How do you do it here?

    Please, help! I'm totally confused!
    Regards!
    Ales Zigon

    Rock 'em key things!!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>When I double clicked on the "cpp" file, it showed me the code window


    Hmm..... something tells me you new to this huh?

    1 Once you're happy with the code, go to build->compile. This will build your .obj files and all the other stuff.

    2 go to build->build. This will make the executable file (your program....)

    3 Now you have a choice, either go to your project directory and click on the exe file (If its dos based go to dos and type the name of your program) or go to build->Execute to see the proggy run while you are still using vc++.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    19
    Hmm..... something tells me you new to this huh?

    [/B][/QUOTE]

    Hi!

    Yup!! Fresh as fresh can be!

    You know, my home is actually VB, but just want to learn some more - and this one is just driving me nuts! I can't even do a simple thing like "Click on this button to..." - you know! In VB, my experience goes quite a way but this.. it like Japanese to me.

    It's quite different from VB (and I mean EVERYTHING!). Don't even know how to open a project (all those files!) and even when I download a sample prg it gives me some nasty error whitch I don't even know what it means!

    I've been reading tuts from here and there for three days now and I'm getting confused even more. They all explain how to write something in the console window (DOS like) but nothing on implementing GUI. I know! You'll probabbly say something about learnig simple stuff first - I could agree with you more, but you see - I'm quite familiar with windows GUI , procedures,loops,...[name it!] - (VB!!), but in VC++ I just can't do anything (not even show my form).

    You know, in VB it's simple as... pu some command on a form, dblClick a command - insert code, press F5 and here you go! You can preview your work.

    (I hope, the wordCounter on this page isn't set to integer! - joke)

    Any idea?
    Regards!
    Ales Zigon

    Rock 'em key things!!

  4. #4
    Unregistered
    Guest
    Originally posted by zigona
    Hmm..... something tells me you new to this huh?

    Hi!

    Yup!! Fresh as fresh can be!

    You know, my home is actually VB, but just want to learn some more - and this one is just driving me nuts! I can't even do a simple thing like "Click on this button to..." - you know! In VB, my experience goes quite a way but this.. it like Japanese to me.

    It's quite different from VB (and I mean EVERYTHING!). Don't even know how to open a project (all those files!) and even when I download a sample prg it gives me some nasty error whitch I don't even know what it means!

    I've been reading tuts from here and there for three days now and I'm getting confused even more. They all explain how to write something in the console window (DOS like) but nothing on implementing GUI. I know! You'll probabbly say something about learnig simple stuff first - I could agree with you more, but you see - I'm quite familiar with windows GUI , procedures,loops,...[name it!] - (VB!!), but in VC++ I just can't do anything (not even show my form).

    You know, in VB it's simple as... pu some command on a form, dblClick a command - insert code, press F5 and here you go! You can preview your work.

    (I hope, the wordCounter on this page isn't set to integer! - joke)

    Any idea?
    [/B][/QUOTE]

    You are experiencing what is commonly known as VB withdrawl. The symptoms you describe exactly match this. To do forms with VC++, you could use MFC, but I highly suspect the code to that would confuse you even more. Look up a few beginner's C tutorials and execute them as console applications.

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    19
    Hi!

    Thanx. I'll give it a try! Hope something pops up.

    P.S.: sorry for some spelling mistakes. My mind got confused but still works faster than my hand.
    Regards!
    Ales Zigon

    Rock 'em key things!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Re-doing a C program to run in Win2000 or XP
    By fifi in forum C Programming
    Replies: 5
    Last Post: 08-17-2007, 05:32 PM
  2. how to run an exe command in c++ and get back the results?
    By mitilkhatoon in forum C++ Programming
    Replies: 5
    Last Post: 09-21-2006, 06:00 PM
  3. calculating the mode
    By bigggame in forum C Programming
    Replies: 10
    Last Post: 06-13-2006, 03:04 AM
  4. How I can Run exe file in C++
    By palang in forum C++ Programming
    Replies: 2
    Last Post: 05-10-2006, 11:55 AM
  5. Replies: 2
    Last Post: 10-29-2002, 04:56 PM