Solved

dBase error codes

Posted on 2004-04-02
2
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why adding test code changes the build ? 11 135
Handling string inputs in C/Linux 23 194
Parsing XML instructions in Java/any other language.... 3 121
Test the speeds on my PC Drives 12 71
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

762 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