Aide sur utilisation dll
Publié : mar. 04/mai/2004 21:11
Bonjour !
Voila ! J'aimerais utiliser la dll WDGPS.DLL de Bruno BASLI
dll de convertion latitude logitude coordonnée Lambert etc ..
exemple d'utilisation VB ici :[url]
http://www.wdgps.com/wdgps/Exemple_vbas ... _HOWTO.txt
[url]
essai de codage en pure :
Mais 2 Problemes : Des Variables Double en Vb et Pas en Pure ?
La fonction que je veux utiliser renvoie 2 variable x et y
Quel sintaxe utiliser

Voila ! J'aimerais utiliser la dll WDGPS.DLL de Bruno BASLI
dll de convertion latitude logitude coordonnée Lambert etc ..
exemple d'utilisation VB ici :[url]
http://www.wdgps.com/wdgps/Exemple_vbas ... _HOWTO.txt
[url]
essai de codage en pure :
Code : Tout sélectionner
; test utilisation dll WDGPS.DLL de Bruno BASLI
OpenConsole()
Global x.f,y.f,lat.f,lon.f
Print("Entrez latitude en degres decimal ?")
lat$ = Input()
PrintN("")
Print("Entrez longitude en degres decimal ?")
lon$ = Input()
PrintN("")
lat = ValF(lat$)
lon = ValF(lon$)
If OpenLibrary(1, "WDGPS.DLL")
resultat = CallFunction(1,"LatLon_WGS84_2_LT2e",lat,lon,x,y)
Debug "retour =" + Str(resultat)
If resultat
PrintN("coordonnée x = " + Str(x))
PrintN("coordonnée y = " + Str(y))
Else
MessageRequester("info","probleme sur appel de fonction de la dll",0)
EndIf
Else
MessageRequester("info"," Ne trouve pas WDGPS.DLL",0)
EndIf
a$=Input()
CloseLibrary(1)
CloseConsole()
End

La fonction que je veux utiliser renvoie 2 variable x et y
Quel sintaxe utiliser
