#include "libload.h" int main() { DBL_U8 *NDBCDriverName = (DBL_U8*)"NDBCS"; DBL_U8 *NetType = (DBL_U8*)"Default"; DBL_U8 ServerName = (DBL_U8*)"IM10\\SQLEXPRESS2008"; DBL_U8 *DatabaseName = (DBL_U8*)"TEST"; DBL_U8 *NavisionPath = (DBL_U8*)"C:\\Program Files\\Microsoft Dynamics NAV\\60\\Classic\\"; DBL_U8 *NavisionLicNameWithFullPath = (DBL_U8*)"P:\\WM40\\NAVLicence\\NAV2009\\license.flf"; if(SessionInit((DBL_U8*)"cfrontsql.dll") == 0) { DBL_SetNavisionPath(NavisionPath); DBL_LoadLicenseFile(NavisionLicNameWithFullPath); DBL_ConnectServerAndOpenDatabase(NDBCDriverName,ServerName,NetType,DatabaseName,0,0,1,0,0); if(!DBL_GetDatabaseName(DatabaseName)) DBL_OpenDatabase(DatabaseName,0,0); DBL_U8*CompanyNamePtr = DBL_NextCompany(CompanyNamePtr); if(*CompanyNamePtr != '\0') { DBL_OpenCompany(CompanyNamePtr); ....................... } DBL_CloseCompany(); DBL_CloseDatabase(); DBL_Exit(); } .................. }
Comments
Maybe that helps... Who knows )
Follow my blog at http://x-dynamics.blogspot.com
I tried doing this but with no luck.
Regards,
Hemant
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
Can someone help me out to resolve this?
Thanks,
Hemant
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)