Solved

How to access Interbase db under linux using c/c++?

Posted on 2003-11-30
3
517 Views
Last Modified: 2013-12-09
I have to write a application to access Interbase db using c/c++ under linux.But I don't know how to do it and what I need .Who can help me ?
0
Comment
Question by:xuxuf
3 Comments
 

Author Comment

by:xuxuf
ID: 9858151
I use the Interbase API to access the DB (Interbase 7.1 on linux 7.2):
 dpb = dpb_buffer;
   *dpb++ = isc_dpb_version1;
   *dpb++ = isc_dpb_num_buffers;
   *dpb++ = 1;
   *dpb++ = 90;
   dpb_length = dpb - dpb_buffer;
   strcpy(uname,"SYSDBA");
   strcpy(upass,"masterkey");
   isc_expand_dpb(&dpb, &dpb_length,
      isc_dpb_user_name, uname,
      isc_dpb_password, upass,
   NULL);

   strcpy(empdb,"BillingServer:/tmp/test2.gdb");
   db_len=strlen(empdb);

   if(isc_attach_database(status,db_len,empdb,&db,dpb_length,dpb_buffer))
   {
       ERREXIT(status,1)
   }

I encountered the error is :
'connection rejected.'
Who can help me?
0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 9866278
This can make your life easier:

IBPP, A C++ client interface for Firebird Server & InterBase
http://www.ibpp.org/


Bojidar Alexandrov
0
 
LVL 2

Accepted Solution

by:
Stummel earned 20 total points
ID: 9888292
Hi,

I usualy prefer the api - or the gpre pre processor for plain c programms to access interbase / firebird.

Ibpp did not compile on my powerpc with firebird 1.5 - but it might work on intel hardware.

Maby Kylix is an solution for you - but (in my oppinion) it is to buggy to use it.

Stummel
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now