-
April 22nd, 1999, 09:28 AM
#1
How to call IDL 'modules' from C++?
IDL has a way of specifying a 'module' which has a name and a list of functions. These functions become known to the user
via the typelibrary. As the module is not a interface, how do we call these functions in VC++?.
In VB, I noticed that, if you just include the dll or olb as reference, you can start using those functions directly, as if they are
available as 'global' functions. However, when I tried to use that olb or dll in VC++ using #import, the generared .tli/tlh files
don't contain any info about these functions. Class Wizard also gave the same result.
One example of that type of OLB: C:\Program Files\Common Files\Microsoft Shared\Vba\Vba332.dll
Can any one please help me out to get those functions for use in VC++?
-
April 22nd, 1999, 09:47 AM
#2
Re: How to call IDL 'modules' from C++?
Try using CoCreateInstance with the "Module" works for me.
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
|