-
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
-
Re: COM/Dll Issues
Have you tried to "import" the object?
Code:
#import <MyCOMObject.dll>
-
Re: COM/Dll Issues
Did you get a .tlb file with the COM files? Sometimes the type library info is in a .tlb file.