Solved

Compact MDB file in VC++

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

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

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

24 Experts available now in Live!

Get 1:1 Help Now