Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   IDHTTP in einer DLL dynamisch erstellen? Wie? (https://www.delphipraxis.net/122156-idhttp-einer-dll-dynamisch-erstellen-wie.html)

SimStar001 10. Okt 2008 11:54


IDHTTP in einer DLL dynamisch erstellen? Wie?
 
Hallo, ich muss in meiner Dll einen IDHTTP erstellen weil ich zur Ausführung einer funktion was runterladen muss.


wie kann ich dies machen?


vielen dank!

Relicted 10. Okt 2008 12:24

Re: IDHTTP in einer DLL dynamisch erstellen? Wie?
 
Entweder dynamisch erstellen...

Delphi-Quellcode:
var
  IdHTTP1: TIdHTTP;

  IdHTTP1 := TIdHTTP.Create(Self);
  with IdHTTP1 do
  begin
    Name := 'IdHTTP1';
    MaxLineAction := maException;
    ReadTimeout := 0;
    AllowCookies := True;
    ProxyParams.BasicAuthentication := False;
    ProxyParams.ProxyPort := 0;
    Request.ContentLength := -1;
    Request.ContentRangeEnd := 0;
    Request.ContentRangeStart := 0;
    Request.ContentType := 'text/html';
    Request.Accept := 'text/html, */*';
    Request.BasicAuthentication := False;
    Request.UserAgent := 'Mozilla/3.0 (compatible; Indy Library)';
    HTTPOptions := [hoForceEncodeParams];
  end;
...oder ein datenmodul zu deiner dll hinzufügen, das ding erzeugen und drauf zugreifen.

gruß
reli


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:43 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz