Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 19-05-2008, 10:48 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2007
Posts: 14
Default database connectivity with C/C++


hi friends! can anybody tell me how to make database connection with C or C++?
peyoush_thakur is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-05-2008, 11:06 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: database connectivity with C/C++

The database you wish to use will have its own set of libraries to use from. If you tell us what kind of database are you attempting to connect from your C(++) application to, we can help better.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 20-05-2008, 08:35 PM   #3 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Queen of the hills:Shimla
Posts: 160
Question Re: database connectivity with C/C++

I also came here to ask a similar question.
Using filesystems can't we make file associations to every other type of file like for example database file with .mdb extension.
I gave It a simple trial but it does not open in text or in binary mode.
Is it possible??
__________________
visit:
http://skiewpoint.blogspot.com

http://aestheticblasphemy.blogspot.com
anshul is offline  
Old 20-05-2008, 08:48 PM   #4 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: database connectivity with C/C++

Extensions are just indicative in nature and serve no other purpose other than being that. The file's contents are in no way related to the extension its name carries. So no, file-systems and extensions are not related either and you can not do what you are trying to via that way.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 20-05-2008, 09:31 PM   #5 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Queen of the hills:Shimla
Posts: 160
Default Re: database connectivity with C/C++

"Extensions are just indicative in nature and serve no other purpose other than being that. The file's contents are in no way related to the extension its name carries. So no, file-systems and extensions are not related either and you can not do what you are trying to via that way."

Then please suggest how to create a database in C/C++
__________________
visit:
http://skiewpoint.blogspot.com

http://aestheticblasphemy.blogspot.com
anshul is offline  
Old 20-05-2008, 09:46 PM   #6 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: database connectivity with C/C++

You can use one of the many APIs to connect to / edit / create / modify / delete databases and their components. For instance, MySQL provides an API MySQL++ for use with C++ language. Likewise, depending upon your choice of Database you can get them from their official sites.

As for simple accessing and create/edit/modify/delete of its records/tables, you can use generic drivers, Visual C++ would have help files on those, check them out. I have only used these functionalities from within Visual Basic so I do not know the C++ requirements.

Simply search databases on MSDN's C++ page perhaps, if your domain is Windows. If Unix, you should find enough docs in /usr/share/doc already

P.s. If its a small one just use simple hash tables
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 25-05-2008, 03:09 AM   #7 (permalink)
In The Zone
 
knight17's Avatar
 
Join Date: Oct 2005
Location: Kerala
Posts: 312
Default Re: database connectivity with C/C++

SQLite is a very simple DB. Here is an article explaining how to work with it from C++

- http://www.sqlite.org/capi3.html
__________________
"It's not a silly question if you can't answer it." Sophie's World [ http://en.wikipedia.org/wiki/Sophie's_World ]
knight17 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wi fi connectivity kushals QnA (read only) 1 30-10-2007 12:07 AM
Wi Fi Connectivity himtuna Hardware Q&A 9 14-10-2007 12:17 PM
Help in Database connectivity in VB 6.0 redhat QnA (read only) 3 01-11-2006 12:17 AM
Wi-Fi Internet connectivity for Rs 400! Ashis Technology News 1 07-01-2006 01:50 PM
Database Connectivity - Visual Basic 6 «TechnoPhile» QnA (read only) 3 17-12-2005 02:22 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2