Microsoft visual studio.net 2003 edition

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2004
Posts: 489
Reputation: Acidburn is an unknown quantity at this point 
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

Microsoft visual studio.net 2003 edition

 
0
  #1
Aug 4th, 2005
Hello, in the past i've used MS VC++ v6, however since uni this year are going to teach us .NET i thought it would be a good idea to grab a copy of visual studio.net , however when opening my old *.cpp files they dont wanna run. the blue run icon is faded awsay hence i cant click it. what do i do?

Thanks

John
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15
Reputation: shortLived is an unknown quantity at this point 
Solved Threads: 0
shortLived shortLived is offline Offline
Newbie Poster

Re: Microsoft visual studio.net 2003 edition

 
0
  #2
Aug 4th, 2005
Originally Posted by Acidburn
Hello, in the past i've used MS VC++ v6, however since uni this year are going to teach us .NET i thought it would be a good idea to grab a copy of visual studio.net , however when opening my old *.cpp files they dont wanna run. the blue run icon is faded awsay hence i cant click it. what do i do?

Thanks

John

With .NET you really don't open .cpp files, unless you only want to edit the file. What you need is a solution and project for the .cpp files. You can create a new project from the "Start Page", then select "Win32 project", (check the location shown to make sure it is where you want it to be), then click on OK. The next screen select "Application Settings" then click "Console application" and "Empty project" radio buttons and click finish. You will then have a "solution" and "Project". In the project will be folders which are where your .cpp files need to be. You will see these folders in the "Solution Explorer" window. In Windows explorer copy your .cpp files to the location of you project and then in the Solution explorer when you right click you can select "Add Existing Item" to add the files to the project.
Im sure this is all very cloudy but when you have done it several times it becomes quite simple. You will need to be careful of where you rename items such as the solution name, project name, and names of the .cpp files.
Randy
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 489
Reputation: Acidburn is an unknown quantity at this point 
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

Re: Microsoft visual studio.net 2003 edition

 
0
  #3
Aug 4th, 2005
Originally Posted by shortLived
With .NET you really don't open .cpp files, unless you only want to edit the file. What you need is a solution and project for the .cpp files. You can create a new project from the "Start Page", then select "Win32 project", (check the location shown to make sure it is where you want it to be), then click on OK. The next screen select "Application Settings" then click "Console application" and "Empty project" radio buttons and click finish. You will then have a "solution" and "Project". In the project will be folders which are where your .cpp files need to be. You will see these folders in the "Solution Explorer" window. In Windows explorer copy your .cpp files to the location of you project and then in the Solution explorer when you right click you can select "Add Existing Item" to add the files to the project.
Im sure this is all very cloudy but when you have done it several times it becomes quite simple. You will need to be careful of where you rename items such as the solution name, project name, and names of the .cpp files.
Randy

arr thankyou, now when I run it , it complies sucessfully. However when the console windows runs it imediately closes again, any ideas?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15
Reputation: shortLived is an unknown quantity at this point 
Solved Threads: 0
shortLived shortLived is offline Offline
Newbie Poster

Re: Microsoft visual studio.net 2003 edition

 
0
  #4
Aug 5th, 2005
I'm not sure what you are trying to do. Is it that the code exucutes and closes/ends? Try putting as a last line in main cin >> x; just to have the code wait for a keyboard input. (x can be an int variable.)
Randy
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC