Multiple Inclusion
-
I've a MTS/COM+ component (COMPONENT_1) that
#import
s ADO library. And, I have another MTS/COM+ component (COMPONENT_2) that#import
s this component (i.e. COMPONENT_1). I need to use ADO objects in my second component (COMPONENT_2) too. If I use#import
in my second component, I get lots of errors. If I do not, the MIDL compiler remains unable to recognize_Recordset
data type. Or, lets say that I do not use ADO in my second component at all i.e. I useIDispatch
instead of_Recordset
pointers to receive recordsets. This solves the problem but gives birth to a new problem. ADO recordsets loose their current position i.e. it moves to the first record if type casted toIDispatch
pointers. I dont know why. Can anyone please show me how to do it? I am using ATL with Visual C++ 6.0 SP5. Thanks Gurmeet
BTW, can Google help me search my lost pajamas?
My Articles: HTML Reader C++ Class Library, Numeric Edit Control
-
I've a MTS/COM+ component (COMPONENT_1) that
#import
s ADO library. And, I have another MTS/COM+ component (COMPONENT_2) that#import
s this component (i.e. COMPONENT_1). I need to use ADO objects in my second component (COMPONENT_2) too. If I use#import
in my second component, I get lots of errors. If I do not, the MIDL compiler remains unable to recognize_Recordset
data type. Or, lets say that I do not use ADO in my second component at all i.e. I useIDispatch
instead of_Recordset
pointers to receive recordsets. This solves the problem but gives birth to a new problem. ADO recordsets loose their current position i.e. it moves to the first record if type casted toIDispatch
pointers. I dont know why. Can anyone please show me how to do it? I am using ATL with Visual C++ 6.0 SP5. Thanks Gurmeet
BTW, can Google help me search my lost pajamas?
My Articles: HTML Reader C++ Class Library, Numeric Edit Control
Any COM expert here? Please help! Gurmeet
BTW, can Google help me search my lost pajamas?
My Articles: HTML Reader C++ Class Library, Numeric Edit Control