Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Compact MDB file in VC++

Posted on 1998-04-21
1
Medium Priority
?
364 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 400 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

722 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