rajeshckk Posted January 15, 2008 Share 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. Link to comment Share on other sites More sharing options...
Zxian Posted January 15, 2008 Share Posted January 15, 2008 Moved to correct forum. Link to comment Share on other sites More sharing options...
phkninja Posted January 15, 2008 Share 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 Link to comment Share on other sites More sharing options...
jdoe Posted January 15, 2008 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now