Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Webbrowser without MFC Pin
Michael Dunn18-May-03 13:01
sitebuilderMichael Dunn18-May-03 13:01 
GeneralRe: Webbrowser without MFC Pin
James Spibey18-May-03 13:09
James Spibey18-May-03 13:09 
GeneralRe: Webbrowser without MFC Pin
Michael Dunn18-May-03 16:32
sitebuilderMichael Dunn18-May-03 16:32 
GeneralRe: Webbrowser without MFC Pin
Stephane Rodriguez.19-May-03 0:58
Stephane Rodriguez.19-May-03 0:58 
Questionhow to compact database file? Pin
_skidrow_vn_18-May-03 11:12
_skidrow_vn_18-May-03 11:12 
AnswerRe: how to compact database file? Pin
jhaga18-May-03 11:52
professionaljhaga18-May-03 11:52 
GeneralRe: how to compact database file? Pin
_skidrow_vn_18-May-03 12:33
_skidrow_vn_18-May-03 12:33 
GeneralRe: how to compact database file? Pin
jhaga18-May-03 13:22
professionaljhaga18-May-03 13:22 
There is COMPACT TABLE statement but you can not use it in Access
as far as I know. Try VB/VBS/ASP/ADO like this:
http://www.pstruh.cz/tips/detpg_CompactMDB.htm[^]

or C++ like this:

Visual C++: Compacting an Access Database via ADO
Besides #import, the Msado15.dll (MDAC2.1), add the following #import statement to generate the wrapper classes for JRO to your .cpp classes (alternatively, you can generate the wrapper classes more efficiently by using the no_implementation and implementation_only attributes of the #import pre-processor statement):#import "C:\PROGRAM FILES\COMMON FILES\System\ado\MSJRO.DLL" no_namespace

Add the following (specifying your own source and destination database paths) to the .cpp file where you want to compact the database:...
try
{
IJetEnginePtr jet(__uuidof(JetEngine));
jet->CompactDatabase(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\nwind2.mdb",
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\abbc.mdb;" \
"Jet OLEDB:Engine Type=4");
}
catch(_com_error &e)
{
::MessageBox(NULL, (LPCTSTR)e.Description( ), "", MB_OK) ;
}


jhaga




CodeProject House, Paul Watson wrote:
...and the roar of John Simmons own personal Nascar in the garage. Meg flitting about taking photos.Chris having an heated arguement with Colin Davies and .S.Rod. over egian values. Nish manically typing *censur*. Duncan racing around after his pet *c.* Michael Martin and Bryce loudly yelling *c.* C.G. having a fit as Roger Wright loads up *c.* . Anna waving her *c.* and Deb scoffing chocolates in the corner.
...Good heavens!

AnswerRe: how to compact database file? Pin
Martyn Pearson18-May-03 22:43
Martyn Pearson18-May-03 22:43 
GeneralRe: how to compact database file? Pin
_skidrow_vn_19-May-03 18:31
_skidrow_vn_19-May-03 18:31 
GeneralCStatic subclassing Pin
djordj18-May-03 10:56
djordj18-May-03 10:56 
GeneralRe: CStatic subclassing Pin
Joaquín M López Muñoz18-May-03 11:21
Joaquín M López Muñoz18-May-03 11:21 
GeneralRe: CStatic subclassing Pin
Michael Dunn18-May-03 12:59
sitebuilderMichael Dunn18-May-03 12:59 
Generalbroadcast video from live webcam Pin
sharlila18-May-03 7:09
sharlila18-May-03 7:09 
Generalsymbian/EPOC v5 SDK Pin
Kuniva18-May-03 6:57
Kuniva18-May-03 6:57 
GeneralUse something other than WinMain as entry point Pin
Paul Farry18-May-03 3:43
professionalPaul Farry18-May-03 3:43 
GeneralRe: Use something other than WinMain as entry point Pin
Baris Kurtlutepe18-May-03 7:54
Baris Kurtlutepe18-May-03 7:54 
GeneralRe: Use something other than WinMain as entry point Pin
Vikram A Punathambekar19-May-03 0:19
Vikram A Punathambekar19-May-03 0:19 
GeneralRe: Use something other than WinMain as entry point Pin
Baris Kurtlutepe19-May-03 9:50
Baris Kurtlutepe19-May-03 9:50 
QuestionHow to save data in listctrl Pin
Megastoffel18-May-03 1:17
Megastoffel18-May-03 1:17 
AnswerRe: How to save data in listctrl Pin
valikac18-May-03 6:47
valikac18-May-03 6:47 
GeneralGDI related Pin
John-theKing18-May-03 0:38
John-theKing18-May-03 0:38 
GeneralRe: GDI related Pin
Chris Losinger18-May-03 3:53
professionalChris Losinger18-May-03 3:53 
GeneralRe: GDI related Pin
basementman19-May-03 4:54
basementman19-May-03 4:54 
GeneralPopup menus in windows explorer Pin
Mazdak17-May-03 22:22
Mazdak17-May-03 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.