?
Solved

How to integrate MFC application with win32 console application

Posted on 2008-11-11
3
Medium Priority
?
605 Views
Last Modified: 2013-12-14
Hi All,
Greetings...
I m new to visual c++. I have two different applications. once is MFC application and the other is win32 console application. i want to get the data from MFC application to win32 console application. can anyone explain me this in detailed.

Thanks in Advance
0
Comment
Question by:chaitanya_vemasani
  • 2
3 Comments
 
LVL 49

Expert Comment

by:DanRollins
ID: 22935210
What kinds of data do you want to transfer?
0
 

Author Comment

by:chaitanya_vemasani
ID: 22936625
If i enter a string in edit box in MFC GUI, i need to get that string into the console application.
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 1500 total points
ID: 22937987
There are a number of options.  Generic IPC techniques such as Pipes and sockets and DDE are discussed here:
   Interprocess Communications
   http://msdn.microsoft.com/en-us/library/aa365574(VS.85).aspx
If your GUI app is going to start the console app, then you can also pass data to it via the command line when you start it.  The values on the command line are available in your main() fn as the argc[] array strings.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question