Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Posts
    1

    Red face Unanswered: connecting to Postgresql with Borland C++ Builder in Windows

    Hi everybody, this is my first message to this forum and I need help

    I want to develop a database application with Borland C++ Builder. I
    want to access a PostgreSQL sited in a remote Windows, and I have some questions:
    hat ways can I use to connect to the database? (ODBC ...�?)
    I would like not using ODBC because it is too slow. I have heard about socket connections. Any ideas? or documents available?

    I have heard about the libpq++ classes. But, are them only for
    Linux, or can I use them from the Borland C++ Builder?

    Is there anything that solves what I am looking for? I would be thankfull for your help or any reference to documentation that tells this.

  2. #2
    Join Date
    Apr 2003
    Location
    Tunisia
    Posts
    192

    Thumbs up ODBC sources

    The best thing you could dp to get this working is to get the ODBC sources they are the best http://gborg.postgresql.org/project/...rojdisplay.php
    Open up
    Take a look to my Blog http://www.rundom.com/karim2k

  3. #3
    Join Date
    Jan 2004
    Location
    Thailand
    Posts
    1
    you ' d like to use postgreSQL++ to run on win32.

  4. #4
    Join Date
    Sep 2013
    Posts
    1
    If you need to connect Windows 7 + PostGreSQL 9.2 + BORLAND BUILDER 6 (2002) all 32bits
    you need:

    Project->Options->Directories/Conditionals.
    1 - Set in Include Path: C:\Program Files\PostgreSQL\9.2\include

    2 - Set de Library path:
    C:\Program Files\PostgreSQL\9.2\lib

    put all this files on top.

    3 - Put in your folder project (where the file EXE is generated), the libintl.dll + libpq.dll

    4 - open the cmd prompt, and go to the folder PostGreSQL/9.2/bin.

    In cmd, type: implib -a libpq.lib libpq.dll.
    the libpq.lib is generate.

    Go to the ProjectManager, in Builder Cpp, and in your project add, the libpq.lib, generated by setp 4.

    Build and Make your project.

    Run!

  5. #5
    Join Date
    Jan 2006
    Posts
    18
    use the DB components from Microolap.com
    They are wery good and feature reach.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •