Click to See Complete Forum and Search --> : Synchronize method on DAO 3.5 database object


Luca
May 25th, 1999, 10:49 AM
I need to use the Synchronize method with a DAO 3.5 database in a Visual C++ application. When I use this code the program work fine:

CdbDatabase dbDatabase;
CdbDBEngine dbEngine;

dbDatabase = dbEngine.OpenDatabase( "C:\\Programmi\\Agenti\\Agenti.mdb" );
dbDatabase.Synchronize( "\\\\Server-1\\Europa\\Files\\Agenti Server.Mdb", dbRepImpExpChanges );
dbDatabase.Close();



but when I try to synchronize with the internet option I receive this error message:

Invalid argument. (Error 3001)

the code is this:

dbDatabase = dbEngine.OpenDatabase( "C:\\Programmi\\Agenti\\Agenti.mdb" );
dbDatabase.Synchronize( "www.mysite.com\\Files\\Agenti Server.Mdb", dbRepImpExpChanges|dbRepSyncInternet );
dbDatabase.Close();



who can help me?!? Thanks!!

Luca Morettoni