Solved

Compact MDB file in VC++

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

691 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