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++ / July 2005

Tip: Looking for answers? Try searching our database.

VC 6.0 Project File Configuration

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patches - 17 Jul 2005 19:54 GMT
rWhen you allow VC 60 to generate configuration files for a C++ program, it
defaults to a CONSOLE application.  Changing Project/Settings to "_WINDOWS"
has no effect on the Project file (.dsp) lines that define CONSOLE instead of
Win32 app.
Is there anyway to change or overide the dsp setting  to create a Win32
Windows app instead of a CONSOLE app (Other than manually editing, which does
work)?
Signature

Thanks,
Patches

William DePalo [MVP VC++] - 17 Jul 2005 22:14 GMT
> Is there anyway to change or overide the dsp setting  to create a Win32
> Windows app instead of a CONSOLE app (Other than manually editing, which
> does
> work)?

I'm not sure I understand you. If you choose

   File->New

from the menu do you see a tabbed dialog? If you select the Projects tab and
then highlight the Win32 Application line you don't get a project configured
for a windowed application?

Regards,
Will
Patches - 18 Jul 2005 02:31 GMT
Yes, creating the workspace first before adding C++ files is a simple way to
do this.  For some reason, I had tried Compiling the C++ file first.  Then VC
6 offers to create the configuration files.  If you click yes to that, then
you get a Console app.
Signature

Thanks,
Larry

> > Is there anyway to change or overide the dsp setting  to create a Win32
> > Windows app instead of a CONSOLE app (Other than manually editing, which
[quoted text clipped - 11 lines]
> Regards,
> Will
William DePalo [MVP VC++] - 18 Jul 2005 03:10 GMT
> Yes, creating the workspace first before adding C++ files is a simple way
> to
[quoted text clipped - 3 lines]
> then
> you get a Console app.

Ah, I see now. It offers to create a default workspace and doesn't say which
kind of project is the default.

It reminds me of the old joke where a guy does to a doctor and says "It
hurts when I do this". The doctor says "So don't do that". :-)

Seriously, I don't think you can change that default. The most expedient
thing to do is to do is to create a fresh project and ad the sources to it.

Regards,
Will

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.