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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using dll on a remote machine

Status
Not open for further replies.

ByzantianX

Programmer
Dec 18, 2000
103
I would like to ask, probably a very simple question:
There is a remote computer and I'd like to get some result from it (more precisely, the exact time). I suppose I should make an activeX dll on a remote computer and a small exe on a local machine which will get the result from the remote computer. "The only" problem is that I don't know how to do that! Could anyone help me, please? It's quite important (I don't need a code for function, just an example how to make a connection to a remote computer and use the dll on it)! Thanks in advance
 
Hi,
you should install a program on the remote computer, then send to him some messages, receive it, understand what to do and then reply with another message.

For Example:
request:
********
ID=1234
ASK=TIME
********

Answer:
*******
ID=9876
REPLY TO=1234
VALUE=12.35 PM
*******

There are several method to access a remote computer.


Here: you can download ALMailSlot.

It's a component that works on intranet for computers on the same domain or workgroup. You can broadcast a message (for all) or send to a specific workstation.

OnNewMeesage:
****************
procedure TForm1.ALMailSlot1NewMessage(Sender: TObject; Computer, UserName,Text: String);
**************

Very easy.

Ciao,
Geppo Darkson.
 
If you only want to know the time on the remote host, then you can use NetRemoteTOD function. It would give you all the info you need.

--- markus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top