Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReadMe Files

Status
Not open for further replies.

woodcarver

Technical User
Oct 11, 2001
20
US
Hi all:
{how do i add a ReadMe file to a project using C++builder}
Tried looking in documentation but can't seem to locate,
also could be that I looked at it but did not see it.
Thanks {woodcarver}
 
wuh??
how do u mean, add a readme file?
just create a readme.txt file in the project directory....
 
try this:
Project->Add To Project...

and add your text file. This will add it to the project. Like LoneRanger, Im confused as to the purpose. Do you want to display the file in your application? If you could be a little more specific, we'd be able to help you more. Cyprus
[noevil]
 
Hi: Sorry about the conufsion- this "computer" and I are going to have a battle one of these days!!!!
I need to put a ReadMe file into an application that I got "elected" to write. It will have the usual info for the user in it; install notes,usage,etc. I'm not that familiar with this program{Borland C++ Builder Professional}, but the more that I "experiment" with it the more I like it. The documentation is really good-if you have been programming for a while-which I've not that long. Thanks for your input! Woodcarver
 
Alright, I still don't understand why... You need to make a readme file, alright. So make one in word and put it in the same directory as the executable. IF you want to display the readme in the app, then put in a Memo or a RichEdit and do
RichEdit->Lines->LoadFromFile("MyReadme.txt");

Do you want to make a help file? What exactly is it that you want us to help you with? The more specific you are, the better we can understand your problem and help you out. Cyprus
[noevil]
 
Yes, I need to display the readme in the app. It would probably be a good idea to create help files also. I'm not totally sure but I don't think that Win. has the .hlp files that I would need to use, maybe some, come to think about it.
So I will probably need to write them specifically for the app. Is there a "wizard" for this, or do I create them from scratch?
 
Yes, there is a help file writer that comes with BCB.

go to
C:\Program Files\Borland\CBuilder5\Help\Tools

or wherever you installed your BCB, and under help\tools you'll find the hcw.exe... It's the Microsoft Help File creator, and not very good, but it is free, (which is probably the reason it sucks)

I would suggest using RoboHelp, or something along those lines. Although those cost money and the windows help creator is free. Adding your help file to BCB is not hard at all. If you need to know how, just ask. I don't have the time to write out an explaination now, and you may already know. It's not hard to guess. You can quite easily implement context-sensitive help. If you don't know, once again... just ask.


Along the lines of your readme...
Like I said, you can go about doing this 2 ways.

One) Put the readme.txt in your executables directory and do a LoadFromFile("readme.txt") from either a RichEdit or a Memo.
NOTE: If your making your readme in rich text format (*.rtf) you'll, of course, have to use a RichEdit.

Two) Just make the readme in a RichEdit or Memo, (like, RichEdit->Lines) in design time, and you won't even have to worry about loading it from a file.

Does that help? Am I beating the right bush or did you want something different? Cyprus
[noevil]
 
Cyprus:
{You are "right-on"(to coin an old phrase)THANKS for your input}
Woodcarver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top