my com atl uses one atl object that has an interface.
this object should return some recordset to the client.
i want to use a regular class that will handle all the recordset creation, so i added a class to the project that creates a recordset.
now i want to create an instance of the regular class from my atl object in order to create the recordset.
i've tried some examples:
CComObject<systemRecordset> * pConn;
in another example i saw usage of CComCoClass
what's the correct way to do it?