Jump to content

DLL Invokation using an Application.


Recommended Posts

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


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...