<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Jun 2020 15:14:30 Z</lastBuildDate><pubDate>11 Jun 2020 15:14:30 Z</pubDate><description>Bonjour à tous&#13;
&#13;
Je voudrais utiliser une DLL externe dans un projet Windev.&#13;
&#13;
Ma DLL se nomme DLL_ALE&#13;
créée comme suit:&#13;
&#13;
Imports System.IO&#13;
Imports System&#13;
Imports System.Net&#13;
&#13;
Public Class ALEREST&#13;
&#13;
    Public Function ALE(ByVal Topic As String) As String&#13;
        ' Create a request for the URL. &#13;
        ServicePointManager.ServerCertificateValidationCallback = Function() True&#13;
        Dim request As WebRequest =&#13;
          WebRequest.Create("https://10.145.29.234/api/v1/" &amp; Topic)&#13;
        ' If required by the server, set the credentials.&#13;
        request.Credentials = New NetworkCredential("Admin", "Oceansys")&#13;
        ' Get the response.&#13;
        Dim response As WebResponse = request.GetResponse()&#13;
        ' Display the status.&#13;
        'Console.WriteLine(CType(response, HttpWebResponse).StatusDescription)&#13;
        ' Get the stream containing content returned by the server.&#13;
        Dim dataStream As Stream = response.GetResponseStream()&#13;
        ' Open the stream using a StreamReader for easy access.&#13;
        Dim reader As New StreamReader(dataStream)&#13;
        ' Read the content.&#13;
        Dim responseFromServer As String = reader.ReadToEnd()&#13;
        ' Display the content.&#13;
        Return responseFromServer&#13;
        ' Clean up the streams and the response.&#13;
        reader.Close()&#13;
        response.Close()&#13;
    End Function&#13;
&#13;
End Class&#13;
&#13;
Dans mon projet Windev, j'ai importé les éléments &#13;
system, system.IO, system.net&#13;
j'ai aussi importé la DLL( DLL_ALE)&#13;
&#13;
je reprend l'exemple du manuel de formation &#13;
je passe la commande suivante:&#13;
&#13;
ALE (chaîne UNICODE)&#13;
mais rien!!!&#13;
voulant recuperer les donnees d'une table appelée PRESENCE, j'ai modifié la commande avec &#13;
ALE ("PRESENCE" UNICODE)&#13;
et toujours pareil ,rien!!!&#13;
&#13;
quelqu'un peut il m'aider?</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240333-utilisation-dll-net/read.awp</link><title>utilisation DLL .NET</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
