Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implements clause, what the heck's up with it?
Message
 
To
13/02/2002 11:03:03
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00619515
Message ID:
00619534
Views:
14
Hi John,

>When running the following code I get the error: Type Library word.application not found.

Your code works just fine for me after I added the missing events. The reason that "word.application" doesn't work for you is that you either have a registry problem or the type library doesn't exist. In order to read typelib information, VFP has to load a physical file. If you specify the file directly, no further action is needed, but it's also the least flexible one.

If you specify a ProgID as you did, VFP searches the registry for that ProgID to determine the CLSID. Then it searches for this CLSID. If there's no typelib subkey, VFP uses the AppKey value and locates that key in the registry. The AppKey should have a typelib key. The typelib key has got a default value specifying the UUID of the typelib in the HKEY_CLASSES_ROOT\TypeLib tree. VFP locates the typelib there. Finally it uses the version, platform (Win32 for us) and the locale ID to locate the correct typelib file.

Alternatively you can specify the typelib's GUID and version directly. You find the GUID in the description field of root entry of the type library in VFP's Object Browser.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform