avi123
December 17th, 2003, 03:01 AM
Hello,
I'm trying to create a COM Object using ATL Project wizard.
I choose the the Attributed,DLL,Support COM+ 1.0 & support componenet register.
after that I have created a new class using add class->ATL COM+ 1.0 component(with the default setting)
and new class and a new interface were created
I saw my interface let's say IMyInterface inherits from IUnknown & IDispatch,
1. My First question is do I need to implement thier functions in my interface, I mean do I need to implement QueryInterface, AddRef,etc...?
2. I have added a new function to my IMyInterface interface
How do I call it from My client?
Do I have to load the dll?
3. except my new functions in IMyInterface, do I have to implement something else inorder to make it work?
I mean after using just the ATL wizard witout adding a class is my project already a com object doing nothing?
if not after adding my class and my interface, is it now COM object?
if it is, is it ready to be used?
I really need help here I'm really short in time
thank you all
Avi
I'm trying to create a COM Object using ATL Project wizard.
I choose the the Attributed,DLL,Support COM+ 1.0 & support componenet register.
after that I have created a new class using add class->ATL COM+ 1.0 component(with the default setting)
and new class and a new interface were created
I saw my interface let's say IMyInterface inherits from IUnknown & IDispatch,
1. My First question is do I need to implement thier functions in my interface, I mean do I need to implement QueryInterface, AddRef,etc...?
2. I have added a new function to my IMyInterface interface
How do I call it from My client?
Do I have to load the dll?
3. except my new functions in IMyInterface, do I have to implement something else inorder to make it work?
I mean after using just the ATL wizard witout adding a class is my project already a com object doing nothing?
if not after adding my class and my interface, is it now COM object?
if it is, is it ready to be used?
I really need help here I'm really short in time
thank you all
Avi