Solved

Display in commnad window

Posted on 2003-12-04
4
154 Views
Last Modified: 2013-11-20
Hi experts,
          I am currently in a project of incorporating comman dline interface in to  adilaogue based program in vc++.I am able to parse the commands, But there is one problem. I can't show the output to the command line window.I used setwindowhandle, getwindowhandle almost all functions related to getting command window handle.But in vain. Please anyone suggest me a way to get the output get buffered to command line window.I heard using a pipe to route will help. Please provide me help on this (code snippet preferred), or any other way through which I can accomplish this.

GM    
0
Comment
Question by:google_man
4 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9881503
In existing dialog based application open Project - Settings, Link tab, and make change in Project Options edit box.
Intead of:
/subsystem:windows
type:
/subsystem:console /entry:"WinMainCRTStartup"

Now program is opened with console window, and any printf line is shown in it.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 11992053
PAQed - no points refunded (of 100)

Computer101
E-E Admin
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 122
Expand LInux Boot partition remotly 3 78
WinWaitActive parameters 12 31
isEverywhere  challenge 19 64
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now