Thread: Microsoft Visual Studio .NET HELP!!

  1. #1
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483

    Microsoft Visual Studio .NET HELP!!

    I am fairly new to Visual Studio .NET.

    I am having some major problems with Visual Studio .NET, everytime i try to compile a project even as simple as the 'helo world!' one, it does NOT make an .exe file, and also if there is something wrong with the code it says its alright, i've checked all the settings they are fine. I've asked for help on a few forums but nothing seems to work.

    I had/have the same exact problem with Visual Studio Express Beta 1 2005.

    Any ideas what could be wrong with it. I installed it on my friends computer and it works.

    And would formating my hard drive and reinstalling everything help?

    Thanks.

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Formatting and reinstalling may help, but you could probably get to the root of the problem another way. Granted, I have no idea what the root cause may be from your very basic problem description, but I'm sure there is an easier way than reformatting.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Compile will only create the object files, you need to click Build to link them all up into an exe

  4. #4
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    I assumed he was doing that.... since he said it all worked on his friend's computer. I really hope that isn't the solution.

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Quote Originally Posted by ober
    I assumed he was doing that.... since he said it all worked on his friend's computer. I really hope that isn't the solution.
    Gee I hope not too, because you recommended a reinstall for that, you are bound to win the "Most dangerous advisor of the year award"


  6. #6
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    True, but if it works on one computer and not on another, I'd say some settings are hosed, and finding the changes that are needed may not be the simplest of tasks.

  7. #7
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    When I use VS.NET, and I create a project, and then a new cpp file (like I used to do in VC 6), if I click compile, it does nothing. This is because by default, it does not add the .cpp file to the current project like it used to in VC 6. So after creating a new source file you have to manually insert the file (I think from the insert menu and choose "Add file to project" then "existing file"). Maybe this is the problem? There must be some option somewhere to automatically add new files to the current project, but I haven't found it (actually I haven't bothered to look...).
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Quote Originally Posted by IfYouSaySo
    When I use VS.NET, and I create a project, and then a new cpp file (like I used to do in VC 6), if I click compile, it does nothing. This is because by default, it does not add the .cpp file to the current project like it used to in VC 6. So after creating a new source file you have to manually insert the file (I think from the insert menu and choose "Add file to project" then "existing file"). Maybe this is the problem? There must be some option somewhere to automatically add new files to the current project, but I haven't found it (actually I haven't bothered to look...).
    Go to the project menu, click Add New Item, choose a CPP file.It will add the file to the project automatically

  9. #9
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    OMG! I feel like an idiot!

    What i've been doing is making .cpp files but not adding them to the project. So i guess it compiled the project without the .cpp files included in the project and thats why it didn't make an .exe file.



    Thanks guys!

    I really appreciate it.

    Thanks again!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Templates and Macros plus more...
    By Monkeymagic in forum C++ Programming
    Replies: 8
    Last Post: 01-20-2007, 05:53 PM
  3. using classes
    By krazykrisi in forum C++ Programming
    Replies: 9
    Last Post: 11-22-2006, 10:41 AM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. Does Microsoft Visual C++ .NET come with C#?
    By Jubba in forum C# Programming
    Replies: 1
    Last Post: 08-14-2003, 05:40 PM