habe noch ein kleines Verständnisproblem mit der ADS Verbindung zu einem externen Server. Ich habe auf dem anderen Rechner ein Datadictionary angelegt. In den Beispielen die ich habe finde ich nur die lokale Verindung zu einem Datadictonary. Wie kann ich mich aber mit der IP und dem anderen Dictionary verbinden ?
Grüße
Rudolf
Das ist meine Verbindung zum lokalen Dictonary, wo gebe ich die IP vom externen Server an und wie das Datadictonary ?
Code: Alles auswählen
scDictName := "v:\formcommander\daten\FormCommander.add"
scUserName := "admin"
scPassword := "!adf456w4r"
scDataPath := "v:\formcommander\daten\"
IF Empty(scDictName)
DC_WinAlert('No Dictionary specified')
ShowOptions()
QUIT
ENDIF
DC_IconDefault(ICON_DICTIONARY)
snDictHandle := 0
snFreeHandle := 0
cSearch := Space(20)
nError := AdsConnect60( Alltrim(scDictName), ;
ADS_REMOTE_SERVER + ADS_LOCAL_SERVER, ;
scUserName, ;
scPassword, ;
ADS_DEFAULT, ;
@snDictHandle )