Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

distributed communications error 52

Status
Not open for further replies.

furei1976

Programmer
Aug 1, 2011
24
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top