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.
Page 1 of 1
DLL Invokation using an Application. DLL procedure invokation in an EXE.
#3
Posted 15 January 2008 - 01:35 PM
#import doesnt work, you have to use direct Win32 API commands. More info aon creating and using DLL's here
MS Page 1
Flipcode
More info
Easy Example
Hope these help you
MS Page 1
Flipcode
More info
Easy Example
Hope these help you
This post has been edited by phkninja: 15 January 2008 - 01:35 PM
#4
Posted 15 January 2008 - 05:51 PM
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 It
COM in plain C
Introduction to COM - What It Is and How to Use It
COM in plain C
This post has been edited by jdoe: 15 January 2008 - 05:53 PM
- ← Batch Help
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- Need Help Getting Started with Assmebly Language →
Share this topic:
Page 1 of 1



Help
Back to top










