Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including a external DLL

Status
Not open for further replies.

Diodin

Programmer
May 8, 2001
29
NL
I'm trying to write a Windows Shell Extension use Visual SourceSafe in the windows explorer. Therefor I need the SSAPI.DLL in my ATL Project. But how do I do this?

I tried
#import "ssapi.dll"
this generates a tli and tlh file, but what then?

I also tried to include the IDL generated from the DLL. I then have a lot of interface, but how to create a object. Interface are al abstract?

I search alot on the internet but the only examples i can find is of people whom wrote a DLL and then include it in aqnother project but them have all the header files, etc.

Can anyone tell me the best or just a hint on how to use an external DLL in a C++ ATL project.
 
SSAPI.DLL is a COM in-process server. To get real objects from it, use CoCreateInstance() with the interface and class IDs which are registered in it.

You might want to consider borrowing/purchasing a book on COM programming. If you read just the first few chapters I think you'll gain a huge amount of insight into your problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top