473,473 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Database for DOS C program

I am writing a program for a handheld device. It is a simple C
program and it runs in a DOS like environment. I'm compiling it in
Microsoft Visual C v1.x. Anyway, as part of this application, I have
to search a rather large lookup file. Simply looping on a flat file
takes far too long and the processor isn't fast enough to compile an
index file of my own on the fly.

So, this brings me to the point of having to find a database library
that I can use in this situation. Something small and simple woudl be
preferable as space on this device will be limited. Is there a
database library that anyone knows of whichI may be able to use? If
so, any info and/or links would be very helpful.

Thanks in advance,
Matt

Feb 7 '07 #1
6 1855
ma*************@gmail.com wrote:
I am writing a program for a handheld device. It is a simple C
program and it runs in a DOS like environment. I'm compiling it in
Microsoft Visual C v1.x. Anyway, as part of this application, I have
to search a rather large lookup file. Simply looping on a flat file
takes far too long and the processor isn't fast enough to compile an
index file of my own on the fly.

So, this brings me to the point of having to find a database library
that I can use in this situation. Something small and simple woudl be
preferable as space on this device will be limited. Is there a
database library that anyone knows of whichI may be able to use? If
so, any info and/or links would be very helpful.
Google is your friend. Try "C library database".

I see: SQLite and DBM.
Feb 7 '07 #2
Hi Matt,

ma*************@gmail.com wrote:
I am writing a program for a handheld device. It is a simple C
program and it runs in a DOS like environment. I'm compiling it in
Microsoft Visual C v1.x. Anyway, as part of this application, I have
to search a rather large lookup file. Simply looping on a flat file
takes far too long and the processor isn't fast enough to compile an
index file of my own on the fly.
I can recommend Faircom's "ctree" product.
Very stable and fast. Very immune against sudden power failures
or program crashes.
I am using it for years now, under various OSs, including
pure DOS.
You get the source, it is highly portable.

It costs $$, but it is worth every one of it :-)
Maybe you can get an older version somewhere, version 6 will do nice.

HTH
Wolfgang

--
From-address is Spam trap
Use: wolfgang (dot) mahringer (at) sbg (dot) at
Feb 7 '07 #3
ma*************@gmail.com wrote:
I am writing a program for a handheld device. It is a simple C
program and it runs in a DOS like environment. I'm compiling it in
Microsoft Visual C v1.x. Anyway, as part of this application, I have
to search a rather large lookup file. Simply looping on a flat file
takes far too long and the processor isn't fast enough to compile an
index file of my own on the fly.

So, this brings me to the point of having to find a database library
that I can use in this situation. Something small and simple woudl be
preferable as space on this device will be limited. Is there a
database library that anyone knows of whichI may be able to use? If
so, any info and/or links would be very helpful.

Thanks in advance,
Matt
<OT (most likely)>

If your flat file is read only and its content is static, maybe you can
use GNU gperf to generate a perfect hash function for you?
http://www.gnu.org/software/gperf/gperf.html
</OT>
Feb 7 '07 #4
On Feb 7, 9:05 am, matt.b.willi...@gmail.com wrote:
I am writing a program for a handheld device. It is a simple C
program and it runs in a DOS like environment. I'm compiling it in
Microsoft Visual C v1.x. Anyway, as part of this application, I have
to search a rather large lookup file. Simply looping on a flat file
takes far too long and the processor isn't fast enough to compile an
index file of my own on the fly.

So, this brings me to the point of having to find a database library
that I can use in this situation. Something small and simple woudl be
preferable as space on this device will be limited. Is there a
database library that anyone knows of whichI may be able to use? If
so, any info and/or links would be very helpful.
You want SQLite or FastDB.
You asked in a wrong place.
A web search will find this stuff for you easily.

http://www.garret.ru/~knizhnik/fastdb.html

http://www.sqlite.org/

Feb 7 '07 #5
Wolfgang Mahringer wrote:
ma*************@gmail.com wrote:
>I am writing a program for a handheld device. It is a simple C
program and it runs in a DOS like environment. I'm compiling it
in Microsoft Visual C v1.x. Anyway, as part of this application,
I have to search a rather large lookup file. Simply looping on a
flat file takes far too long and the processor isn't fast enough
to compile an index file of my own on the fly.

I can recommend Faircom's "ctree" product. Very stable and fast.
Very immune against sudden power failures or program crashes. I
am using it for years now, under various OSs, including pure DOS.
You get the source, it is highly portable.

It costs $$, but it is worth every one of it :-) Maybe you can
get an older version somewhere, version 6 will do nice.
That has been around for close to 20 years, so it should be highly
bug-free.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Feb 7 '07 #6
ma*************@gmail.com wrote:
>
I am writing a program for a handheld device. It is a simple C
program and it runs in a DOS like environment. I'm compiling it
in Microsoft Visual C v1.x. Anyway, as part of this application,
I have to search a rather large lookup file. Simply looping on a
flat file takes far too long and the processor isn't fast enough
to compile an index file of my own on the fly.

So, this brings me to the point of having to find a database
library that I can use in this situation. Something small and
simple woudl be preferable as space on this device will be limited.
Is there a database library that anyone knows of whichI may be able
to use? If so, any info and/or links would be very helpful.
Not enough information. It is possible that hashlib may do what
you want. See:

<http://cbfalconer.home.att.net/download/>

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Feb 7 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rob Young | last post by:
This is the latest in the "Total Non-Programmer" series. Any feedback on the usability of this tutorial would be greatly appreciated. Thanks, Rob How to Build A Web Database (Without...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
5
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my...
22
Frinavale
by: Frinavale | last post by:
How To Use A Database In Your Program Many .NET solutions are database driven and so many of us often wonder how to access the database. To help you understand the answer to this question I've...
15
by: chaseexchange | last post by:
First, a brief explanation of why this has happened. I purchased, what I thought, was a fully functional program written in Access last year from a local programmer. This program was to be used as...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.