-
November 15th, 2010, 10:28 AM
#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
-
November 15th, 2010, 11:01 AM
#2
Re: COM/Dll Issues
Have you tried to "import" the object?
Code:
#import <MyCOMObject.dll>
-
November 15th, 2010, 06:58 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|