473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Change project type in VC6

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?

Feb 28 '06 #1
3 1954
> 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.
br**********************@hotmail.com
Remove only "_nos_pam"
Feb 28 '06 #2


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.
br**********************@hotmail.com
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

Feb 28 '06 #3
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.
br**********************@hotmail.com
Remove only "_nos_pam"
Feb 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: BKM | last post by:
Is there a way that I can change the default font in VB6 so I don't have to constantly change the font of each new control that I add to my project?
0
by: Michael Douma | last post by:
This is about a small subcontracting project. This is an interesting project which produces interactive graphs of the gnutella network. We are updating a python project written by students at...
3
by: Roberto Castro | last post by:
Hello! I have been assigned for the first time an adp Access project and so far I have managed to make the changes needed for some requirements. However, I am struggling to find the place where...
2
by: renu | last post by:
Hi, What options do I have after putting a month in on writing a program and so many functions in it and now I want to change the name of the project with their file names? Do I make the new...
2
by: DE3A10 | last post by:
How do I change my reference Path in ASPX.NET 2.0?. I already look at http://msdn2.microsoft.com/en-us/library/6taasyc6(VS.80).aspx and I din't find reference path on the properties. Can some one...
1
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data...
45
by: Zytan | last post by:
This returns the following error: "Cannot modify the return value of 'System.Collections.Generic.List<MyStruct>.this' because it is not a variable" and I have no idea why! Do lists return copies...
6
by: =?Utf-8?B?UmljaCBFbHN3aWNr?= | last post by:
I would like to change an applicaiton I have from .NET 2.0 target framework to .NET 3.0 framework. Any suggestions on how to do this?
7
by: Fabio Mastria | last post by:
Looks like a joke... : As I say in the subject... I create a javascript file, with this function: function IndexChanged(source){ alert("Hallo");
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.