Hi,
NETRemoteTOD is not really friendly with clarion apps... but there is other way to do this, you could use NetDDE, this will work with all versions of windows.
1: The server program
Program
Map
Include('DDE.clw')
.
Include('Equates.clw')
LOC:TheServerTime Long
LOC

DEServerChan Long
Window Window('Time server'),At(,,,),Timer(100)
End
Code
Loc:TheServerTime = Clock()
Open(Window)
0{PROP:Hide} = TRUE
Loc

DEServerChan = DDESERVER('Net DDE Time Server','TimeServer')
Accept
Case Event()
Of EVENT:Timer
LOC:TheServerTime = Clock()
Yield
Of EVENT:CloseWindow
OrOf EVENT:CloseDown
Break
Of EVENT

DERequest
Case DDEITEM()
Of 'Time'
DDEWRITE(Loc

DEServerChan,DDE:Manual,'Time',Loc:TheServerTime)
Of 'Halt'
Break
End
Else
Yield
End
End
DDECLOSE(Loc

DEServerChan)
Close(Window)
2: The client program
Program
Map
Include('DDE.clw')
End
Include('Equates.clw')
LOC:TheServerTime Long
LOC

DEClientChan Long
LOC:ServerName String(50)
Window WINDOW('Network DDE Client'),AT(,,275,40),FONT('MS Sans Serif',8,,),SYSTEM,GRAY
PROMPT('The time is:'),AT(6,24),USE(?Loc:TheServerTime

rompt)
STRING(@T04),AT(81,24,,12),USE(Loc:TheServerTime)
BUTTON('Get'),AT(227,2,40,14),USE(?GetTimeButton)
STRING('Server name'),AT(7,7),USE(?String2)
ENTRY(@s20),AT(79,6,60,10),USE(LOC:serverName)
BUTTON('Close'),AT(227,20,40,14),USE(?CloseButton)
END
Code
! if Client is Win9x make sure NetDDE is running
! RUN('c:\windows\netdde.exe')
Loc:ServerName = 'MYSERVER' ! or whatever is the correct server name
Loc

DEClientChan = DDECLIENT('\\'&CLIP(LOC:ServerName)&'\NDDE$','TimeServer$')
Open(Window)
Accept
Case Event()
Of EVENT:CloseWindow
OrOf EVENT:CloseDown
Break
Else
Yield
End
Case Field()
Of ?GetTimeButton
Case Event()
Of EVENT:Accepted
DDEREAD(Loc

DEClientChan,DDE:Manual,'Time',Loc:TheServerTime)
End
Of ?CloseButton
Case Event()
Of EVENT:Accepted
Post(EVENT:CloseWindow)
End
End
End
DDECLOSE(Loc

DEClientChan)
Close(Window)
3:The configuration of NET DDE on the server
(save as .reg and import in the registry of the server)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NetDDE\DDE Shares\TimeServer$]
"ShareName"="TimeServer$"
"OldStyleLink"=""
"NewStyleLink"=""
"StaticDataLink"="Net DDE Time Server|TimeServer"
"ItemList"=hex(7):00,00,00,00
"Revision"=dword:00000001
"ShareType"=dword:00000004
"SharedFlag"=dword:00000001
"Service"=dword:00000001
"StartAppFlag"=dword:00000001
"fuCmdShow"=dword:00000007
"SecurityDescriptor"=hex:01,00,04,80,54,00,00,00,70,00,00,00,00,00,00,00,14,00,\
00,00,02,00,40,00,02,00,00,00,00,00,14,00,3d,02,00,00,01,01,00,00,00,00,00,\
01,00,00,00,00,00,00,24,00,ff,03,0f,00,01,05,00,00,00,00,00,05,15,00,00,00,\
9c,78,de,68,a4,04,26,43,f6,7e,7a,37,10,05,00,00,01,05,00,00,00,00,00,05,15,\
00,00,00,9c,78,de,68,a4,04,26,43,f6,7e,7a,37,10,05,00,00,01,05,00,00,00,00,\
00,05,15,00,00,00,9c,78,de,68,a4,04,26,43,f6,7e,7a,37,01,02,00,00
"NumItems"=dword:00000000
"SerialNumber"=hex:26,00,00,09,00,00,00,01
4:
- import the registry key
- start the server program on the server
- start the client and login...
- get the time
It should not be too difficult to adapt it to your own needs.
If you need the sources, give me your email.
Valéry.