Solved

Compact MDB file in VC++

Posted on 1998-04-21
1
342 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

12 Experts available now in Live!

Get 1:1 Help Now