Change project type in VC6

U

Ubergeek

I have a project (Win32 application) that I want to change to a console
application. Does anyone know what to edit in which file, to implement
the change?
 
G

Guest

I have a project (Win32 application) that I want to change to a console
application. Does anyone know what to edit in which file, to implement
the change?

If you have a win32 windows application, it receives windows messages that
have to be handled to respond to certain events to open and close files for
example, or respond to button clicks. It is interactive

the idea behind most console applications is completely different: you start
a console application with certain command line options, and then let the
program do what it has to do and finish.

of course you can build an interactive program with a console application,
but what is the point in that case?

How difficult this is depends on your program of course, but since the
programming models are so different, there is no quick fix for this.
The best thing you can do is to create a new win32 console project, and then
copy functionality from your old project into the new project. If the old
program has good separation between code and UI, this should be doable

What is it you are trying to achieve here?

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 
U

Ubergeek

Bruno said:
If you have a win32 windows application, it receives windows messages that
have to be handled to respond to certain events to open and close files for
example, or respond to button clicks. It is interactive

the idea behind most console applications is completely different: you start
a console application with certain command line options, and then let the
program do what it has to do and finish.

of course you can build an interactive program with a console application,
but what is the point in that case?

How difficult this is depends on your program of course, but since the
programming models are so different, there is no quick fix for this.
The best thing you can do is to create a new win32 console project, and then
copy functionality from your old project into the new project. If the old
program has good separation between code and UI, this should be doable

What is it you are trying to achieve here?

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"

Thanks Bruno - I'm aware of all that. I simply created a project in VC6
and selected 'Win32 application' instead of 'Win32 Console Application'

I rember reading an article a little while back, which showed how one
could modify the *.dsp file (I hink) to change the project from a
Windows app to a console app.

FYI, all I have in my code is a number of classes and a main() entry
point. ofcourse because the project type is wrong, its looking for a
WinMain entry point during linking - and failing.

I could easily create a new project (of the correct type) and copy my
files over to the project directory - but I thought it would be much
quicker/simpler to modidfy the appropriate file that stores the proj
type info
 
G

Guest

I rember reading an article a little while back, which showed how one
could modify the *.dsp file (I hink) to change the project from a
Windows app to a console app.

Hi,

Modifying the .dsp file by anything other than changing settings in MSVC is
never a good idea in my opinion. You never know if there are side effects.

If you made a mistake and accidently created the wrong project type then my
advise is to simply create a new console project and copy your files over.
That should take you no more than 5 minutes.

Even if you could change your project type successfully, it is entirely
possible that some of the release and debug default settings are different
which may lead to other unexpected problems.

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 

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