|
| Iniciado por Robert ROCHE, 11,jun. 2020 15:14 - No hay respuesta |
| |
| | | |
|
| |
Miembro registrado 9 mensajes |
|
| Publicado el 11,junio 2020 - 15:14 |
Bonjour à tous
Je voudrais utiliser une DLL externe dans un projet Windev.
Ma DLL se nomme DLL_ALE créée comme suit:
Imports System.IO Imports System Imports System.Net
Public Class ALEREST
Public Function ALE(ByVal Topic As String) As String ' Create a request for the URL. ServicePointManager.ServerCertificateValidationCallback = Function() True Dim request As WebRequest = WebRequest.Create("https://10.145.29.234/api/v1/" & Topic) ' If required by the server, set the credentials. request.Credentials = New NetworkCredential("Admin", "Oceansys") ' Get the response. Dim response As WebResponse = request.GetResponse() ' Display the status. 'Console.WriteLine(CType(response, HttpWebResponse).StatusDescription) ' Get the stream containing content returned by the server. Dim dataStream As Stream = response.GetResponseStream() ' Open the stream using a StreamReader for easy access. Dim reader As New StreamReader(dataStream) ' Read the content. Dim responseFromServer As String = reader.ReadToEnd() ' Display the content. Return responseFromServer ' Clean up the streams and the response. reader.Close() response.Close() End Function
End Class
Dans mon projet Windev, j'ai importé les éléments system, system.IO, system.net j'ai aussi importé la DLL( DLL_ALE)
je reprend l'exemple du manuel de formation je passe la commande suivante:
ALE (chaîne UNICODE) mais rien!!! voulant recuperer les donnees d'une table appelée PRESENCE, j'ai modifié la commande avec ALE ("PRESENCE" UNICODE) et toujours pareil ,rien!!!
quelqu'un peut il m'aider? |
| |
| |
| | | |
|
| | | | |
| | |
|