Re: Change project type in VC6





Bruno van Dooren wrote:
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.
bruno_nos_pam_van_dooren@xxxxxxxxxxx
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

.