Thread: extremely basic .net question

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    52

    extremely basic .net question

    I wasn't sure if this belongs in this board, console board, or the windows programming board. basically, i just got a trial copy of visual studio .net 2003, how do i even compile a basic console c++ hello world app, i can't figure it out, i must be inept. Does anyone know of any tutorials for the really basic .net stuff, ok thanks

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    221
    sounds like me
    i tried to compile a hello world c++ console app, and it kept telling me that there was no "end sub"
    wtf, i even picked a c++ program... THERE IS NO END SUB IN C++
    that i know of, heh
    who knows about this .net, i hope it goes to hell

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    52
    well, when i finally enter my code just this
    Code:
    #include <iostream>
    
    int main ()
    {
             std::cout << "Hello World";
             return (0);
    }
    i can't figure out how to run it...any guides or anything will be helpful

  4. #4
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135
    1. Goto "File" then "New" and select "Project".

    2. You will now have a dialog box, in the left pane ensure that "Visual C++ projects" is highlighted

    3. From the right pane, select "Win32 Project".

    4. In the name field in the same dialog, enter the name of your project and then select "OK".

    5. The Win32 Application wizard will now open, select "application settings" from the right hand side ("Overview" will be highlighted by default).

    6. Select "Console Application" from the radio buttons, and "empty project" from the check boxes under "additional options".

    7. All you have to do now is create a .cpp file and add it to your project. The easiest way of doing is this is by using the solution explorer (probably on the right of your IDE, but otherwise look for it in the "view" menu item.

    8. Right click on the folder labelled "source files" in your solution explorer, and select "add", then "add new" item from the next list.

    9. From here, select a "C++ file" and give it a name...

    10. Begin coding...

    Now - you are not necesarily using .NET by compiling in this IDE, do you want .NET tutorials, or C++ tutorials?

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    52
    all i want, is to make really simple console applications as i pracitce and get better with the core c++ language..i don't want web services or anything and i did what you said, but all i can do is build my application, when i compile it, it runs for a split second and closes... so i would like tutorials on using .net, not necessarily tutorials on the .net framework and stuff.

  6. #6
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    press f5 or control+f5

    control +f5 is debug mode, or is it f5, i dont remember exactly.

  7. #7
    Registered User
    Join Date
    Apr 2003
    Posts
    52
    i do that and my console application runs for one second and closes itself, is there any special code i need to add? thanks

  8. #8
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    try control f5. if that doesnt work read this

    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    it's in the FAQ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help if basic question
    By Sshakey6791 in forum C++ Programming
    Replies: 9
    Last Post: 02-28-2009, 04:00 PM
  2. Extremely basic question
    By chasingxsuns in forum C++ Programming
    Replies: 5
    Last Post: 02-12-2009, 10:28 AM
  3. Basic question - press any key to continue
    By PedroTuga in forum C++ Programming
    Replies: 4
    Last Post: 05-19-2005, 10:38 PM
  4. question about char's in .net
    By ssjnamek in forum C++ Programming
    Replies: 2
    Last Post: 04-10-2005, 03:45 PM
  5. Basic string question
    By charbach007 in forum C++ Programming
    Replies: 2
    Last Post: 03-24-2005, 12:41 PM