Solved

dBase error codes

Posted on 2004-04-02
2
307 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
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…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements 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.

771 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

9 Experts available now in Live!

Get 1:1 Help Now