|
-
Apr 14th, 2009, 03:29 PM
#1
Thread Starter
Member
Help with TLB files please
Hail to All,
I have many applications that create TLB files which I guess are so that vb2005 can comunicate with the DLL files. Now what I would like to do is have all my TLB files in one folder and have my application point to that folder to use them.
The problem I am having is that my EXE will not run unless all the TLB files are in the same folder as the EXE. I do not want this. I want to put some code into my file that sais that the tlb files it needs are located in say:
C:\MyTLBFiles\
then be able to put my EXE into:
C:\Program Files\My Program\
and still have it work. again right now they all have to be in the same folder which is really bugging me.
Thanks for your help.
-
Apr 14th, 2009, 03:36 PM
#2
Re: Help with TLB files please
In your application, create a user setting in My.Settings to save the user specified path of the tlb file(s), then have your program read from it. If the directory is not valid (blank or non-existent...), prompt the user to enter or browse to a valid directory, then save it in My.Settings.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Apr 14th, 2009, 05:10 PM
#3
Thread Starter
Member
Re: Help with TLB files please
Ok I don't see a file type in my.settings. How do I point to the file? say the file is the following:
C:\MyTBLs\filename.tbl
How do I add that to the settings?
Thank you
Mythos
-
Apr 15th, 2009, 07:51 AM
#4
Re: Help with TLB files please
Go to your project properties, click on the Settings tab and create a setting there. Once you've created a setting, you can access it in code by thru My.Settings.[theSettingNameHere]
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|