VC 6.0 Project File Configuration

G

Guest

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)?
 
W

William DePalo [MVP VC++]

Patches said:
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
 
G

Guest

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.
 
W

William DePalo [MVP VC++]

Patches said:
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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top