CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: COM/Dll Issues

  1. #1
    Join Date
    Nov 2010
    Posts
    1

    COM/Dll Issues

    I am new to VC++

    I am trying to use a COM object in my VC++ program.First I tried to use LoadLibrary() & GetProcAddressMethod() to get the function address but i was not able to use that bcoz in the COM functions are not exposed directly Instead its exposed as interfaces.

    Now i am trying to get the address of the interface by passing the classID to CoCreateInstance(). I dont get any .IDL file with the COM dll.I created .IDL file from the registry & i am getting compilation error in that .IDL file.I am using Visual Studio 2008 .

    Plz help me in this

    Thanks,
    Mouli

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: COM/Dll Issues

    Have you tried to "import" the object?

    Code:
    #import <MyCOMObject.dll>

  3. #3
    Join Date
    Nov 2007
    Posts
    35

    Re: COM/Dll Issues

    Did you get a .tlb file with the COM files? Sometimes the type library info is in a .tlb file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured