Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > regtlib.exe and Vista

Reply
Thread Tools Display Modes

regtlib.exe and Vista

 
 
TMC
Guest
Posts: n/a

 
      02-17-2009
Hey All,

Not sure which newsgroup was the best or most appropriate for this so I
apologize for posting to 3.

I need to register .tlb files on a Windows Vista machine but regtlib.exe is
not part of Vista. I'm sure that others have encountered this.

Can someone please advise?

Thanks,

TC

 
Reply With Quote
 
 
 
 
Danny Sanders
Guest
Posts: n/a

 
      02-17-2009
> I need to register .tlb files on a Windows Vista machine but regtlib.exe
> is


run reg.exe /?

and see what your optiuons are.

hth
DDS




"TMC" <> wrote in message
news:AB845F4A-BBDC-48A2-8977-...
> Hey All,
>
> Not sure which newsgroup was the best or most appropriate for this so I
> apologize for posting to 3.
>
> I need to register .tlb files on a Windows Vista machine but regtlib.exe
> is not part of Vista. I'm sure that others have encountered this.
>
> Can someone please advise?
>
> Thanks,
>
> TC


 
Reply With Quote
 
TMC
Guest
Posts: n/a

 
      02-17-2009
There is no register or register .tlb option. The options are:

Query
Add
Delete
Copy
Save
Restore
Load
Unload
Compare
Export
Import
Flags

How is reg.exe specifically releated to regtlib.exe?


"Danny Sanders" <> wrote in message
news:82FC7CE8-1E3D-4C11-B1C9-...
>> I need to register .tlb files on a Windows Vista machine but regtlib.exe
>> is

>
> run reg.exe /?
>
> and see what your optiuons are.
>
> hth
> DDS
>
>
>
>
> "TMC" <> wrote in message
> news:AB845F4A-BBDC-48A2-8977-...
>> Hey All,
>>
>> Not sure which newsgroup was the best or most appropriate for this so I
>> apologize for posting to 3.
>>
>> I need to register .tlb files on a Windows Vista machine but regtlib.exe
>> is not part of Vista. I'm sure that others have encountered this.
>>
>> Can someone please advise?
>>
>> Thanks,
>>
>> TC

>


 
Reply With Quote
 
mayayana
Guest
Posts: n/a

 
      02-18-2009
I don't know what regtlib is, but if you look at the
Setup1 code for the PDW VB installer, you'll see this
comment for typelibs:

' Call vb6stkit.dll's RegisterTLB export which calls
' LoadTypeLib and RegisterTypeLib.


vb6stkit.dll is a custom DLL for the PDW which you can
ship. It provides various functions like logging and CAB
extraction for Setup1. It also has a method RegisterTLB.
You can get the necessary details from the Setup1
project code in the folder VB98\Wizards\PDWizard\Setup1

I've never tried calling LoadTypeLib and RegisterTypeLib,
but they look like they're fairly simple. Maybe you can
just call those directly.

> Not sure which newsgroup was the best or most appropriate for this so I
> apologize for posting to 3.
>
> I need to register .tlb files on a Windows Vista machine but regtlib.exe

is
> not part of Vista. I'm sure that others have encountered this.
>
> Can someone please advise?
>
> Thanks,
>
> TC
>



 
Reply With Quote
 
TMC
Guest
Posts: n/a

 
      02-18-2009
Hey All,

I just needed this:

Declare Function LoadTypeLibEx Lib "OLEAUT32" ( _
ByVal szFile As Long, _
ByVal regkind As Long, _
TypeLib As IUnknown) As Long

Public Const REGKIND_REGISTER As Long = 1

Then call it like this:

Dim oTL As IUnknown

LoadTypeLibEx StrPtr([MyTLBFilePathAndName.tlb]), REGKIND_REGISTER, oTL




"TMC" <> wrote in message
news:AB845F4A-BBDC-48A2-8977-...
> Hey All,
>
> Not sure which newsgroup was the best or most appropriate for this so I
> apologize for posting to 3.
>
> I need to register .tlb files on a Windows Vista machine but regtlib.exe
> is not part of Vista. I'm sure that others have encountered this.
>
> Can someone please advise?
>
> Thanks,
>
> TC


 
Reply With Quote
 
Bob Riemersma
Guest
Posts: n/a

 
      05-11-2009
"TMC" <> wrote in message
news:AB845F4A-BBDC-48A2-8977-...
> I need to register .tlb files on a Windows Vista machine but regtlib.exe
> is not part of Vista. I'm sure that others have encountered this.
>
> Can someone please advise?


Have you considered VBRegTLB6? I find it quite handy.

http://www.vbaccelerator.com/home/VB...ib_Utility.asp

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59