Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Registered Type Libraries

I am writing a class that returns a list of all registered type
libraries on a computer. Just by searching for the name of one of my
DLL's in the registry, i found where it stores all such information:
HKEY_CLASSES_ROOT\TypeLib\

I then looked in a few of the entries just to get a sense of how it
works. I understand all except the reason for the 2nd numbered
subdirectory.

An example is:

HKEY_CLASSES_ROOT\TypeLib\{000204EF-0000-0000-C000-000000000046}
- 6.0 (visual basic for applications)
- 9
- win32 (C:\WINDOWS\System32\MSVBVM60.DLL)
- FLAGS (0)
- HELPDIR ()


In this example, i do not know what the "9" means. For most typelibs,
this value is "0", although i have also seen "409". What does this
number represent?

The primary reason of doing this is that I can then use the TLI classes
to extract other info from typelibs, including the expected name and
location of its help file. This is important because whenever i do F1
to get help in VB, i always get a blank help screen because the file is
never in the right place. so far, i have use this to correct at least
5 different typelibs, by searching my computer for a file with the same
name as what the typelib expects, and then copying it into the right
directory. this has helped a lot, because now i can actually get
contextual help on ADO and DAO methods, among other things.

Secondary reasons include the ability to dynamically extract interface
definitions from typelibs for easy implementation in VB and help in
transferring references across sourcesafe using our own sourcesafe
integration with the VBA IDE (which we had to build since the one that
came with office developer sucks).

Anyway, if anyone has any ideas about any other information i can get
from the registry or any other possible applications of such a class,
please let me know.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference Libraries and Add-Ins Rich Excel Discussion (Misc queries) 3 June 26th 09 10:13 PM
Importing libraries Roro Excel Discussion (Misc queries) 0 April 7th 06 01:31 PM
How can I type (R) & not get the registered symbol (r in a circle) Yeller Excel Discussion (Misc queries) 6 February 18th 05 01:31 AM
Porting VBA Libraries MWE[_42_] Excel Programming 1 May 9th 04 11:51 PM
Object libraries Lionel Fridjhon Excel Programming 9 August 29th 03 01:20 PM


All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"