Solved

Compact MDB file in VC++

Posted on 1998-04-21
1
355 Views
Last Modified: 2013-12-03
I need to write program to compact database file in VC++.   I tried to use the sample program found on MSDN document and got lots of compiler error on "dbdao.h" file. Please help!


#include <afxole.h>
#include <dbdao.h>
...
CdbDBEngine    dben;
...
dben.CompactDatabase(    _T("Northwind.mdb"), _T("Nwind2.mdb"),
                            dbLangGeneral, // This is really a string.
                            dbVersion30);

0
Comment
Question by:hawyuan
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1334202
1. You are using MFC. Do you include <afxwin.h> or <stdafx.h> before include <dbdao.h>?

2. What's your version of Visual C++? Have you installed any service pack?

3. What's first error message?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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