postgresql with c++ or c#

I want to display some 3d objects in the graphics window from the database postgresql ...... The data about the objects are stored in the database postgresql.......
1,is it possible to connect c++ and postgresql..... ? ( Give the  source code for connection)
2, is it also possible to connect Csharp and postgresql?... or we have to use (windows presentation Foundation) WPF in C# to connect postgresql......( Give the source code for connection)
please give me proper answers.... Awaiting for the replies.......
jsbsudhaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jkrConnect With a Mentor Commented:
'libpqxx' is the official C++ client API for PostgreSQL, check out the downloads and documentation at http://pqxx.org/development/libpqxx/
0
 
adrpoCommented:

Hi,

From C# you can connect to postgresql using npgsql:
http://pgfoundry.org/projects/npgsql/
A lot of examples you can find here:
http://npgsql.projects.postgresql.org/docs/manual/UserManual.html

There are also commercial solutions:
http://www.crlab.com/pgsqlnet/
It has integration with Visual Studio.

Cheers,
za-k/
0
 
jsbsudhaAuthor Commented:
Csharp using CSGL  program error
0
 
adrpoCommented:
What?
0
 
earth man2Commented:
It is easy to write database stuff in C and then call that from C++.
0
All Courses

From novice to tech pro — start learning today.