Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an ADODB::_RecordsetPtr, I need a CComPtr<adorecordset> - (how?) can I turn one into the other?

What I have tried:

I haven't tried anything - if I knew how to do it, I wouldn't be asking! :)
Posted
Updated 8-Dec-16 2:14am
Comments
Nelek 8-Dec-16 1:35am    
At least you are honest :)

1 solution

As described here the CComPtr<> is the wrapper around it. So a simply casting assigment should work. Use always some try/catch blocks and check the return codes.

The CComPtr<adorecordset> is only a template class for a smart pointer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900