Hi All,
I am trying to create a simple user monitoring app and it is getting a distributed communications error 52. I am just following a script I found online that I think might help. I added a question mark on each line that I think I need to fill correctly (which I think the cause of the issue)
Here is the script:
ConnectionInfo lci_ConInfo[]
Connection lcn_Connection
int li_RowNo, li_rc
long ll_Rows
// Create a connection object.
lcn_Connection = CREATE Connection
// Set connection object properties.
lcn_Connection.Application = " " ?? Is this for the Database.Table name
lcn_Connection.Driver = "Winsock"
lcn_Connection.Location = " " ?? Is it ServerName only
lcn_Connection.UserId = " "
lcn_Connection.Password = " "
// Connect to the server.
lcn_Connection.ConnectToServer ()
// Check for errors.
IF lcn_Connection.ErrCode <> 0 THEN
MessageBox("Error", string(lcn_Connection.ErrCode)&
+ ": " + lcn_Connection.ErrText, &
StopSign!,OK!,1)
DESTROY lcn_Connection
Return 1
END IF
Please help or suggest other ways in creating a user monitoring app.
thanks in advance,
furei
I am trying to create a simple user monitoring app and it is getting a distributed communications error 52. I am just following a script I found online that I think might help. I added a question mark on each line that I think I need to fill correctly (which I think the cause of the issue)
Here is the script:
ConnectionInfo lci_ConInfo[]
Connection lcn_Connection
int li_RowNo, li_rc
long ll_Rows
// Create a connection object.
lcn_Connection = CREATE Connection
// Set connection object properties.
lcn_Connection.Application = " " ?? Is this for the Database.Table name
lcn_Connection.Driver = "Winsock"
lcn_Connection.Location = " " ?? Is it ServerName only
lcn_Connection.UserId = " "
lcn_Connection.Password = " "
// Connect to the server.
lcn_Connection.ConnectToServer ()
// Check for errors.
IF lcn_Connection.ErrCode <> 0 THEN
MessageBox("Error", string(lcn_Connection.ErrCode)&
+ ": " + lcn_Connection.ErrText, &
StopSign!,OK!,1)
DESTROY lcn_Connection
Return 1
END IF
Please help or suggest other ways in creating a user monitoring app.
thanks in advance,
furei