Solved

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

Posted on 2001-08-30
6
354 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FMX StringGrid1->Canvas->FillRect Problem 3 128
Dialogbox API leak? 18 81
Add values of each row in an array 3 50
C++ :Change value from  DisableCMD registry 4 51
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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.

895 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

18 Experts available now in Live!

Get 1:1 Help Now