Ok:
private void opendb()
{
ConnectServerAndOpenDatabase("NDBCN", "NAVISIONSERVER", "tcp", "" ,
8000, true, false, "dick", "");
}
[DllImport("cfront.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void DBL_ConnectServerAndOpenDatabase(string
NDBCDriverName, string ServerName, string NetType,
string DatabaseName, int CacheSize, bool UseCommitCache, bool
UseNTAuthentication, string UserID, string PassWord);
public void ConnectServerAndOpenDatabase(string NDBCDriverName, string
ServerName, string NetType,
string DatabaseName, int CacheSize, bool UseCommitCache, bool
UseNTAuthentication, string UserID, string PassWord)
{
DBL_ConnectServerAndOpenDatabase(NDBCDriverName, ServerName, NetType,
DatabaseName, CacheSize, UseCommitCache, UseNTAuthentication, UserID,
PassWord);
}
Willy: Can you also explain that you understand "what would explain why
it works from a separate thread."?
Dick
*** Sent via Developersdex
http://www.developersdex.com ***