-
April 20th, 2000, 02:42 AM
#1
Registering a TypeLib
I would like to know how i can register an .TLB file without using the setup
wizard.
I want to distribute my appl. quickly. For the .OCX files i use REGOCX32.EXE
and for the .DLL files i use REGSVR32.EXE, but what do i use for the .TLB files?
Rich Smit
-
April 20th, 2000, 03:04 AM
#2
Re: Registering a TypeLib
you can use a function in the setupkit.dll
Public Declare Function RegisterTLB Lib "vb6stkit.dll" (ByVal lpTLBName As String) As Integer
-
April 20th, 2000, 03:17 AM
#3
Re: Registering a TypeLib
That means i have to write my own setup program with code?
But is there no option so i can do it from the command line with
a little tool like regocx32.exe etc. used in a batch file.?
Rich
-
April 20th, 2000, 03:22 AM
#4
Re: Registering a TypeLib
try this:
rundll32.exe vb6stkit.dll,RegisterTLB yourTypeLibpathGoesHere
You should be able to call this from a BAT file.
-
April 20th, 2000, 11:24 AM
#5
Re: Registering a TypeLib
There is also an exe similar to regsvr32 called regtlb. This is designed to register tlb's.
Tim Cartwright 'Will write code for food.
Information Systems
Splitrock Services Inc.
Tim C.
//Will write code for food
-
July 2nd, 2002, 12:28 AM
#6
Re: How to register typelibrary file?
Hi,
I had a similar problem when I tried to install vb application on windows 2000 server. while installing the message box "not able to register msado20.tlb" is popped up. Later, when I try to register this from the command line using regtlb it failed. Finally when I searched for regtlb*.* in that computer, it couldnt find that file.
So I guess this toolkit didnt come along with windows 2000 server. I didnt have this problem while installing on win2000 m/c.
How do I solve this problem?
Thanks,
Ram
-
July 2nd, 2002, 01:04 AM
#7
This is a ADO specific error. Actually, that is a known bug from Micro$oft. More info can be found here. The bottom line is that win2k comes with a higher version of ADO. Because of this higher version already installed, the registration of the 2.0 version fails.
You should not include ADO in a PDW setup file. You can always install MDAC if you need ADO.
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
|