i had pervasive DTO and VB6 one you say. but i am coding using c#. any way i try to do some thing like this. i was able to add a DSN for the existing db.
but i want to create a new db. i think you can help me. whats wrong with the following code segments.
dtoResult result=new dtoResult();
DtoSession My_session = new DtoSession();
// link with the server
result = My_session.Connect("SE-1", "", "");
DtoDatabases databases = new DtoDatabases();
DtoDatabase my_db=new DtoDatabase();
databases = My_session.Databases;
my_db.DdfPath = "D:\\DB FOR IMPORTCOSTING RELEASE VERSION1";
my_db.DataPath = "D:\\DB FOR IMPORTCOSTING RELEASE VERSION1";
result = My_session.Databases.Add(my_db, "ABCD");
Reply With Quote