Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2004

Tip: Looking for answers? Try searching our database.

Migrating from VC++ v6 to v7.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Owen - 03 May 2004 20:21 GMT
With Visual C++ v6, I was able to open a .cpp file into the IDE, type F7, and
have an executable.  With .NET 2003, that is no longer the case.  Is there a
quick and dirty way in .NET to perform like its predecessor?
Domenic Albano - 03 May 2004 20:40 GMT
F5 to build and run,
or Ctrl+Shift+B to only build.

That is provided of course that you have the default C++ keyboard mappings.

Domenic

> With Visual C++ v6, I was able to open a .cpp file into the IDE, type F7, and
> have an executable.  With .NET 2003, that is no longer the case.  Is there a
> quick and dirty way in .NET to perform like its predecessor?
Owen - 04 May 2004 00:27 GMT
If only that worked.  I even set the environment to the default C++ keyboard
mappings.  Nothing.

In v6, pressing F7 would automatically create a workspace and add my files to
the project automatically.  In v7.1, I must jump through the following hoops
before I can compile the code:
1. Select File -> Add Project -> New Project
2. Select Visual C++ Projects -> .NET -> Empty Project (.NET)
3. Enter the path to the files
4. Select OK
5. Select Project -> Add Existing Item
6. Add all the files into the project

Surely the behavior of v6's IDE has been preserved.  Anyone?

> F5 to build and run,
> or Ctrl+Shift+B to only build.
[quoted text clipped - 12 lines]
>
>>quick and dirty way in .NET to perform like its predecessor?
Ronald Laeremans [MSFT] - 03 May 2004 23:30 GMT
No sorry, we lost the ability to auto create a project wrapper around a .cpp
file. It was one of the fatalities of going to the joint IDE.

Ronald Laeremans
Visual C++ team

> With Visual C++ v6, I was able to open a .cpp file into the IDE, type F7,
> and have an executable.  With .NET 2003, that is no longer the case.  Is
> there a quick and dirty way in .NET to perform like its predecessor?
Owen - 04 May 2004 00:53 GMT
Understandable.  The pros of the integrated IDE outweigh the cons.  You all have
done a great job.

> No sorry, we lost the ability to auto create a project wrapper around a .cpp
> file. It was one of the fatalities of going to the joint IDE.
[quoted text clipped - 5 lines]
>>and have an executable.  With .NET 2003, that is no longer the case.  Is
>>there a quick and dirty way in .NET to perform like its predecessor?
Peter van der Goes - 04 May 2004 14:09 GMT
> With Visual C++ v6, I was able to open a .cpp file into the IDE, type F7, and
> have an executable.  With .NET 2003, that is no longer the case.  Is there a
> quick and dirty way in .NET to perform like its predecessor?

Gone, as Robert told you.
The closest workaround I've found for classroom use is to create a default
console project (I call mine CrashTestDummy), then use Project->Add Existing
Item to bring a new source code file(s) into the project. You have to
right-click the old source code file in solution explorer, then select
Remove to remove the old code before rebuilding.
Not nearly as slick as having a default project built around you source
code, but better than creating a new solution each time.

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.