Solved

Question on DIsplaying a File

Posted on 2002-07-09
6
196 Views
Last Modified: 2010-04-01
I have a dialog box and i want to display the contents of a help file within the dialog box. I am currently trying Cstdio::Open and if that fails I use CFile::Read to read some of it into a string and display that in a seperate message box(which is undesireable).

Is there a way to make CStdio::Open display the file in the current dialog box and if not is there a function that will display the entire help file in the dialog box?
0
Comment
Question by:hrasheed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Author Comment

by:hrasheed
ID: 7141078
duplicate
0
 
LVL 30

Accepted Solution

by:
Axter earned 20 total points
ID: 7141528
I don't understand your question.

Are you trying to avoid using CFile::Read?

Please explain exactly what you want to do.
0
 

Author Comment

by:hrasheed
ID: 7141553
yes, I am trying to avoid using CFile::Read (because I would have to use a seperate messagebox to display whatever i read out of the file).  The help file is opened via a button click in a dialog box, and I am trying to find out if CStdio::Open will/is able to display the contents of the help file within that dialog box or, if there is another function that will do that.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 30

Expert Comment

by:Axter
ID: 7160803
>>I am trying to find out if CStdio::Open will/is able to
>>display the contents of the help file within that dialog
>>box or, if there is another function that will do that.

No.  CStdio::Open by itself can not display the contents of the file.

You need to use Read or ReadString in conjunction with CStdio::Open.

If you're having problems with multiple CStdio::Open's calls to the same file, you can close the file after reading the required data, so that other CStdio::Open commands can succeed.
0
 
LVL 11

Expert Comment

by:griessh
ID: 7375944
Dear hrasheed

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "Axter"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7419773
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

739 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