rajeshckk Posted January 15, 2008 Posted January 15, 2008 I am a newbie to this dll invokation. I have a dll called abc.dll and this has three methods in it (a,b,c)when i need to write an console app to invoke the dll, what methods should i follow.In the header file #import "abc.dll"int main(){ CoInitialize(NULL); p = CreateInstance(); p->a(); p->b(); p->c();Release();CoUninitialize();}If could get a code sample that would be really great and point me to the reference as to which files i should be looking at to get the instantiation of the com object. Thanks,Rajesh.
phkninja Posted January 15, 2008 Posted January 15, 2008 (edited) #import doesnt work, you have to use direct Win32 API commands. More info aon creating and using DLL's hereMS Page 1FlipcodeMore infoEasy ExampleHope these help you Edited January 15, 2008 by phkninja
jdoe Posted January 15, 2008 Posted January 15, 2008 (edited) These two links are a good start to understand how to use COM in your applications.Introduction to COM - What It Is and How to Use ItCOM in plain C Edited January 15, 2008 by jdoe
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now