Hi,
Okay, 8 days of searching and trying, this is the last chance... I'm using Borland C++ Builder 5 and I'm connecting to an Access DB (*.mdb) through ADOConnection. I want the db to be compacted each time I close the program because of the well known problem with increasing size. I think the best way for me to do it is described here:
http://support.microsoft.com/kb/230501 (check the C++ part)
So I've imported the msjro.dll successfully, created an ActiveX object (JetEngine1) and used the function like this:
IJetEnginePtr jet(JetEngine1);
I don't really understand what the "__uuidof" stands for and it was giving me an error. But without it, it compiled well... So I used the rest of the code like in the MS Help & Support (of course with my connection string). It compiles well, but it crashes when this part is being called.
Does somebody know the right method to do this ?
Okay, 8 days of searching and trying, this is the last chance... I'm using Borland C++ Builder 5 and I'm connecting to an Access DB (*.mdb) through ADOConnection. I want the db to be compacted each time I close the program because of the well known problem with increasing size. I think the best way for me to do it is described here:
http://support.microsoft.com/kb/230501 (check the C++ part)
So I've imported the msjro.dll successfully, created an ActiveX object (JetEngine1) and used the function like this:
IJetEnginePtr jet(JetEngine1);
I don't really understand what the "__uuidof" stands for and it was giving me an error. But without it, it compiled well... So I used the rest of the code like in the MS Help & Support (of course with my connection string). It compiles well, but it crashes when this part is being called.
Does somebody know the right method to do this ?