Solved

Write output file as a FoxPro .dbf file instead of ASCII file

Posted on 2001-08-30
6
363 Views
Last Modified: 2010-08-05
I need to be able to have my C/C++ program output data not as an ASCII file, but as a .dbf file that can be recognized by FoxPro.  It cannot be done as a save as or anything.  It has to be done by writing to a file.
0
Comment
Question by:BradHuss
[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
6 Comments
 
LVL 3

Accepted Solution

by:
kulina earned 50 total points
ID: 6442841
I would create a data source (DSN), and use some ODBC API to store data. If you are familiar with SQL that shouldn't be a problem. In that case you need Microsoft FoxPro ODBC driver; comes with Visual Studio, thus may not be installed on every system.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6443777
I'm certain that FoxPro can import comma-delimited text files.  Can you explain why that won't work in your situation?  Or do you need help creating a CSV data file?

-- Dan
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 6444006
If you real want create,add/change record/delete record
in .dbf file (w/o indexes), I can send you or post here
wy code for this: ~ 200 lines
0
Industry Leaders: 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!

 
LVL 1

Expert Comment

by:AlexReser
ID: 6444141
There are a lot of libraries in Internet that can do this.
Try to find it with any search engine.

Also you can write such library youself, because the format of DFB file is very simple. Visit www.wotsit.org.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6865619
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "kulina, DanRollins" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6886965
Per recommendation, force-accepted by
Netminder
Community Support Moderator
Experts Exchange

DanRollins: points for you at http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20280050
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is the real difference between C++ and Visual C++.NET? 7 132
PDF library for Delphi 2 135
Would like to move button in a function 3 85
thread-safe code in c++ 2 122
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

726 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