Solved

dBase error codes

Posted on 2004-04-02
2
310 Views
Last Modified: 2008-01-16
I'm having a problem with converting a codebase database file to a dBase file ( at lease I think it is a dBase file). I'm converting the file on a windows PC and transfering the converted file to a DOS based handheld. When the file is accessed the program crashes with the following error:

Fatal error 347
dBase Driver error

Does anybody know what this means?
Also any information on how to make sure I'm creating the header information of the dBase file correctly would be rewarded. I'm not sure how to calculate the record length.

Here is my header code:
                StringCopy(m_header.sig, "JUNI", 4);
            m_header.dver = 0;
            m_header.fver = 1;
            StringCopy(m_header.hres, "", 20);
            m_header.numberFree = 0;
            m_header.recNum = 0;
            m_header.numRec = (short)numRecords;
            m_header.numFld = 11;
            m_header.recLen = 26;  // NOT SURE HOW THIS NUMBER IS CALCULATED.
            m_header.fldNum = 0;
            tempFile.Write(&m_header, sizeof(header_struct));

Thanks.
0
Comment
Question by:Koderiter
2 Comments
 
LVL 9

Accepted Solution

by:
ankuratvb earned 500 total points
ID: 10741255
See this for the dbase file format,the header contains the record length which logically should br the length of the largest record if it is using fixed record allocation.
Not sure how the record length could be a constt. when using spanning record structure.

http://www.dbase.com/KnowledgeBase/int/db7_file_fmt.htm

This is a utility for converting databases from one format to another.
http://www.codeproject.com/tools/dbaseexplorer.asp?print=true
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

773 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