Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2003-11-30
3
544 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

808 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