hrasheed
asked on
Question on DIsplaying a File
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
>>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.
>>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.
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
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
Force accepted
** Mindphaser - Community Support Moderator **
** Mindphaser - Community Support Moderator **
ASKER