Link to home
Create AccountLog in
Avatar of thready
thready

asked on

access Postgres through MFC with libpqxx or OLE DB?

Hi Experts,

In accessing Postgres with an MFC app, should I choose the libpqxx driver or the OLE DB driver?

Thanks for your opinion!
Mike
Avatar of earth man2
earth man2
Flag of United Kingdom of Great Britain and Northern Ireland image

With object oriented inheritance can't you do both ?  Overwrite methods that need to use libpq to get performance.

It all depends if your code needs to be ported to SQL Server.
Avatar of thready
thready

ASKER

Right now I don't care about speed.  I thought I rounded it down to the 2 drivers that I *should* choose from for C++ (MFC app), but I just want to make my life as easy as possible.  I want the best c++ driver I can find that allows me to use nice objects and get results from queries.  I'm not sure that OLE DB is right for me...  I was hoping for something simpler.  Any idea?
ASKER CERTIFIED SOLUTION
Avatar of xeltek
xeltek
Flag of China image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer