Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window docking Pin
PJ Arends10-Jun-05 9:36
professionalPJ Arends10-Jun-05 9:36 
GeneralRe: Window docking Pin
florinduroiu10-Jun-05 14:44
florinduroiu10-Jun-05 14:44 
GeneralRe: Window docking Pin
Ravi Bhavnani10-Jun-05 17:27
professionalRavi Bhavnani10-Jun-05 17:27 
General2D ActiveX Control Operation Pin
jerry1211a10-Jun-05 8:20
jerry1211a10-Jun-05 8:20 
GeneralRe: 2D ActiveX Control Operation Pin
Cedric Moonen10-Jun-05 8:37
Cedric Moonen10-Jun-05 8:37 
Generalconsole application to mfc: Pin
Assariah kingsly10-Jun-05 7:54
Assariah kingsly10-Jun-05 7:54 
GeneralRe: console application to mfc: Pin
Alexander M.,10-Jun-05 8:09
Alexander M.,10-Jun-05 8:09 
GeneralRe: console application to mfc: Pin
John R. Shaw10-Jun-05 20:21
John R. Shaw10-Jun-05 20:21 
Alexander is correct!

Basicaly, C/C++ standard I/O is designed for console programs (the least common denometer).

Piping? No, piping just makes the output an argument to another program (there is no interaction, just display of results).

1) Is it a text only console application?

In that case it is not diffacult, provided you have the library code. What I am reffering to is the parts that provide input/output, the rest does not matter.

For instance, replace all the printf() functions with sprintf() to store the output in at C-String then use a windows text output functions to display it in a window (there is no window output function equivalent to printf()). If it just takes some input on the command line (normaly) and outputs it to the screen, then no problem (an edit control will work).

If it requires interaction from the user (input),
I would consider popping up a dialogbox to ask for the additional input (that way you can still output the text to the same edit control).

2) If it has its' own windowing interface, well you'll just have to figure out how to rewrite the interface under windows (or MFC).

3) If you don't have the source code and you have no control over the I/O, then you are in deep sh** and can do nothing but rewite the libraray.

Good Luck!

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralRe: console application to mfc: Pin
Anonymous13-Jun-05 12:08
Anonymous13-Jun-05 12:08 
GeneralRe: console application to mfc: Pin
John R. Shaw16-Jun-05 22:59
John R. Shaw16-Jun-05 22:59 
GeneralProgramattically setting DLL versioning info Pin
astibich210-Jun-05 7:09
astibich210-Jun-05 7:09 
GeneralRe: Programattically setting DLL versioning info Pin
Alexander M.,10-Jun-05 8:11
Alexander M.,10-Jun-05 8:11 
GeneralRe: Programattically setting DLL versioning info Pin
Blake Miller10-Jun-05 8:16
Blake Miller10-Jun-05 8:16 
GeneralRe: Programattically setting DLL versioning info Pin
David Crow10-Jun-05 10:28
David Crow10-Jun-05 10:28 
GeneralRe: Programattically setting DLL versioning info Pin
Blake V. Miller10-Jun-05 13:19
Blake V. Miller10-Jun-05 13:19 
GeneralCreating Executable Pin
Ooder10-Jun-05 6:38
Ooder10-Jun-05 6:38 
GeneralRe: Creating Executable Pin
David Crow10-Jun-05 6:51
David Crow10-Jun-05 6:51 
GeneralRe: Creating Executable Pin
Anonymous10-Jun-05 11:17
Anonymous10-Jun-05 11:17 
GeneralRe: Creating Executable Pin
Blake V. Miller10-Jun-05 13:21
Blake V. Miller10-Jun-05 13:21 
GeneralRe: Creating Executable Pin
Alex Korchemniy10-Jun-05 9:34
Alex Korchemniy10-Jun-05 9:34 
GeneralRe: Creating Executable Pin
John R. Shaw10-Jun-05 21:04
John R. Shaw10-Jun-05 21:04 
QuestionHow do I make the window for my program non-resizable? Pin
Anonymous10-Jun-05 6:31
Anonymous10-Jun-05 6:31 
AnswerRe: How do I make the window for my program non-resizable? Pin
David Crow10-Jun-05 6:49
David Crow10-Jun-05 6:49 
GeneralRe: How do I make the window for my program non-resizable? Pin
Anonymous10-Jun-05 10:37
Anonymous10-Jun-05 10:37 
GeneralRe: How do I make the window for my program non-resizable? Pin
David Crow10-Jun-05 11:01
David Crow10-Jun-05 11:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.