This is a short sample using ADO.
#include <iostream>
#include <fstream>
#include <string>
#include <ctype.h>
#include<atlbase.h>
#include<adoint.h>
using namespace std;
int main(int argc, char* argv[])
{
CoInitialize(0);
{
CComPtr<_Connection> pConn;
CComPtr<IUnknown> pUnk;
HRESULT hr=pConn.CoCreateInstance(L"ADODB.Connection",0,CLSCTX_INPROC_SERVER);
if(FAILED(hr))
{
cout<<"failed"<<endl;
}
hr=pConn->Open(SysAllocString(L"driver={Microsof Access Driver (*mdb)};database={Path:\...\YourDB.mdb};"

,
SysAllocString(L""

,SysAllocString(L""

,0);
if(FAILED(hr))
{
cout<<"failed"<<endl;
}
hr=pConn->Execute(SysAllocString(L"create table SomeTable(a int,b char(1))"

,0,0,0);
if(FAILED(hr))
{
cout<<"failed"<<endl;
}
}
CoUninitialize();
return 0;
}
John Fill
ivfmd@mail.md