Solved

dBase error codes

Posted on 2004-04-02
2
308 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

930 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

14 Experts available now in Live!

Get 1:1 Help Now