How to call IDL 'modules' from C++?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How to call IDL 'modules' from C++?

  1. #1
    Guest

    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++?


  2. #2
    Guest

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center