7. Februar 2008 14:37
DBL_U8 *NDBCDriverName = (DBL_U8*)"ndbcs";
DBL_U8 *ServerName = (DBL_U8*)"192.168.8.56";
DBL_U8 *NetType = (DBL_U8*)"Default";
DBL_U8 *DatabaseName = (DBL_U8*)"buerodataNav";
DBL_S16 ExceptionHandlerTest = 0;
DBL_U8 *NavisionPath = (DBL_U8*)"C:\\Programme\\Microsoft Business Solutions-Navision\\Client";
DBL_HTABLE hMainTable = 0;
DBL_U8 *CompanyNamePtr;
if (SessionInit((DBL_U8*)"cfrontsql.dll") != 0)
{
printf("Could not load the CFRONT dll");
return 0;
}
if (*NavisionPath!='\0')
{
DBL_SetNavisionPath(NavisionPath);
}
// Hier knallts
DBL_ConnectServerAndOpenDatabase(NDBCDriverName,ServerName,NetType,DatabaseName,0,1,1,(DBL_U8*)"",(DBL_U8*)"");
8. Februar 2008 09:18