Re: error C2259 on Visual C++ Express 2008
No, you can't instantiate abstract class(w/ new). but you can use abstract class pointers.
btw, you don't need to create c/c++ objects - that's all done inside driver. but you have to delete all objects(except all kinds of metadata objects), supplied by driver, in your application, or it will leak memory.
so, using std::auto_ptr or boost::scoped_ptr(or maybe some other smart pointer) makes sense for connection, statement, resultset objects.
regards,
lawrin
Subject
Views
Written By
Posted
5656
April 22, 2009 08:59AM
2872
April 22, 2009 09:27AM
3055
April 22, 2009 04:02PM
Re: error C2259 on Visual C++ Express 2008
2988
April 23, 2009 10:44AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.