A
agrsaurabh
Code Sample:-
ATL Class
class CAtl : public IA, Public IB
{
---------
--------
virtual functions -- overridden of IA and IB
}
class MyClass : public CAtl
{
virtual methods again overridden
}
DEFINE_GUID(CLSID_MyClass, {---GUID---})
My Problem:
I have written a class (CAtl) which is deriving some COM interfaces
(IA and IB).
I have written one more class (MyClass) which is derived from
CAtl class.
I have overridden those virtual function of Interfaces in both of my
classes (in CAtl and also in MyClass).
I defined a new GUID for MyClass class.
Now i have to create Object of my class (CAtl) using CocreateInstance.
which is not working .....
it is saying that CLSID is undefined..what shud i do to register my
class and create its object.
Output file is a .lib
Please help me out
thanx
Now i want to create "Myclass" object using CoCreateInstance and error
is comming that GUID is undefined. How should i create its obj?
ATL Class
class CAtl : public IA, Public IB
{
---------
--------
virtual functions -- overridden of IA and IB
}
class MyClass : public CAtl
{
virtual methods again overridden
}
DEFINE_GUID(CLSID_MyClass, {---GUID---})
My Problem:
I have written a class (CAtl) which is deriving some COM interfaces
(IA and IB).
I have written one more class (MyClass) which is derived from
CAtl class.
I have overridden those virtual function of Interfaces in both of my
classes (in CAtl and also in MyClass).
I defined a new GUID for MyClass class.
Now i have to create Object of my class (CAtl) using CocreateInstance.
which is not working .....
it is saying that CLSID is undefined..what shud i do to register my
class and create its object.
Output file is a .lib
Please help me out
thanx
Now i want to create "Myclass" object using CoCreateInstance and error
is comming that GUID is undefined. How should i create its obj?