GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-May-2004, 06:27
vadharah vadharah is offline
Junior Member
 
Join Date: Apr 2004
Posts: 45
vadharah is on a distinguished road
Unhappy

Console to MFC application


guys i have written a certain program in c++ with the Win32 console and now want to add it to the MFC AppWizard (exe) were i intend to add/create my interface for my program. my program is perfectly working in the console so how do i plug it in the MFC AppWizard (exe) interface. needur help plizzzz
  #2  
Old 04-May-2004, 20:54
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough
Do you mean that you want to call your console application from the new MFC aplication? Or do you need to change from console to MFC?

If it is to change from console to MFC, I think that you have to make a new MFC application and add all the classes/files from your console applicatiion to the new one. Go to your workspace view in the left and select file view. Right click and choose Add files to Project.

Hope that helps.
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
  #3  
Old 05-May-2004, 01:55
vadharah vadharah is offline
Junior Member
 
Join Date: Apr 2004
Posts: 45
vadharah is on a distinguished road
Quote:
Originally Posted by Max Payne
Do you mean that you want to call your console application from the new MFC aplication? Or do you need to change from console to MFC?

If it is to change from console to MFC, I think that you have to make a new MFC application and add all the classes/files from your console applicatiion to the new one. Go to your workspace view in the left and select file view. Right click and choose Add files to Project.

Hope that helps.
i already have my console up and going but now i want to add an interface, menu and so forth and this i can do in the MFC so i just want to add my code there(MFC)
  #4  
Old 05-May-2004, 03:36
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough
Quote:
Originally Posted by vadharah
i already have my console up and going but now i want to add an interface, menu and so forth and this i can do in the MFC so i just want to add my code there(MFC)

Then add your files to your mfc project. Or you can copy paste each of your function to your new files..
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
  #5  
Old 05-May-2004, 04:50
vadharah vadharah is offline
Junior Member
 
Join Date: Apr 2004
Posts: 45
vadharah is on a distinguished road
Quote:
Originally Posted by Max Payne
Then add your files to your mfc project. Or you can copy paste each of your function to your new files..
do i have to create a new class or what?
  #6  
Old 05-May-2004, 04:58
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough
Quote:
Originally Posted by vadharah
do i have to create a new class or what?
OK.Lets say you have two files in your console application , file1.cpp and file1.h, just add them to your new MFC application..Right Click in your file workspace, and choose add files to project, and then just include "file1.h" in your mfc program...

Did I answered your Q?? If not, its means that I have no Idea on what you intend to do... Sorry about that.
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
  #7  
Old 12-May-2004, 01:30
vadharah vadharah is offline
Junior Member
 
Join Date: Apr 2004
Posts: 45
vadharah is on a distinguished road
Quote:
Originally Posted by Max Payne
OK.Lets say you have two files in your console application , file1.cpp and file1.h, just add them to your new MFC application..Right Click in your file workspace, and choose add files to project, and then just include "file1.h" in your mfc program...

Did I answered your Q?? If not, its means that I have no Idea on what you intend to do... Sorry about that.
Spot on mate
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The specified CGI application misbehaved by not returning a complete set of HTTP head bacchus MySQL / PHP Forum 6 16-Jul-2007 22:12
Free Web Host FAQ v4 conkermaniac Free Web Hosting 16 21-Dec-2004 09:50
Application error Nelly C++ Forum 8 04-May-2004 20:48
web server in secure mode not connecting to http application tcsasp Apache Web Server Forum 0 06-Nov-2003 01:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:49.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.