Re: Including a readme.txt IN a dialog
You can certainly add a file as a resource, but you will find it more
difficult to maintain as the project gets closer to release. I think having
the file installed as text on the disk is actually easier and you can easily
load it into a CStringArray (or directly into a CEdit or CListBox) using
CStdioFile to read the file. I know you say you are trying to avoid this,
but if you want to modify it close to the end of the cycle you have to redo
it in the resources and it's kind of a pain to update it.
Depending on how long the text is you could just have it as a string
resource as well. I think you can have several K of text in a single
string.
Tom
"Scoots" <linkingfire@msn.com> wrote in message
news:12f4d859-221e-4dfe-bf9f-4544526de060@a31g2000yqn.googlegroups.com...
Hello all,
I'm hoping this is easy, but google search is entirely failing me, as
the text "readme" causes every application ever written to appear in
the results.
I have an mfc dialog app utility that I want to ship with my main
application. The main application has a readme, and I really don't
want to add additional files to fileset, as it is confusing enough.
The utility has some fairly extensive command line support, and I'd
like to include documentation with it, but I don't want to include it
as additional files. To the user, I want my utility, that's it. When
they run the application, I want them to be able to view the readme,
even if it's just in a textbox. But despite wracking my brain, the
only thing I can think of is to load the readme at runtime from a
separate file, which is exactly what I want to avoid.
What's the best way of doing this? I'd really like to avoid having
additional files if I can.
Thanks,
~Scoots