Home > Archive > Visual Basic > April 2006 > Read embedded file in VB 6.0
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Read embedded file in VB 6.0
|
|
|
| Hi, I'm creating a COM add-in VB 6.0. I have added a text file to the
project (it appears in the Project Explorer window). My question is how
do I access the file to read it into a string variable? If that can't
be done, how can I add the file to the project so that it exists in
the.dll without hard-coding a path to the file inside my code?
| |
| Ken Halter 2006-04-28, 6:56 pm |
| "frice" <frice@microsoft.com> wrote in message
news:1146241855.311970.316160@e56g2000cwe.googlegroups.com...
> Hi, I'm creating a COM add-in VB 6.0. I have added a text file to the
> project (it appears in the Project Explorer window). My question is how
> do I access the file to read it into a string variable? If that can't
> be done, how can I add the file to the project so that it exists in
> the.dll without hard-coding a path to the file inside my code?
About the only benefit to the 'Related Document' functionality has is to get
source safe to keep track of the file. Other than that, it's not connected
to the app in any way. If the file isn't too large, you can add it to a
resource file and that'll be permanently compiled into the app. Check the
Add-In manager for the 'VB 6 Resource Editor'
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
| |
|
| I'll give that a try. Thanks, Ken.
|
|
|
|
|