Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reference Libraries and Add-Ins | Excel Discussion (Misc queries) | |||
Importing libraries | Excel Discussion (Misc queries) | |||
How can I type (R) & not get the registered symbol (r in a circle) | Excel Discussion (Misc queries) | |||
Porting VBA Libraries | Excel Programming | |||
Object libraries | Excel Programming |