Jump to content

Recommended Posts

Posted

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.


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...