Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Delphi5: DFÜ-Verbindung aufbauen

Empfohlene Antworten

Versuch's mal mit Indy Kompos. Da sind auch Beispiele mit bei. Die helfen dir bestimmt weiter.

  • Autor

Hab leider die Indy-Komps (sind bei Delphi erst ab 6 dabei soweit ich weiss) nicht, und kann (bzw.) darf keine installieren.

Ich muss da leider mit den Standardkomponenten von D5pro auskommen.

MfG Frank

P.S.: Ist es bei Euch auch so heiss, hier unten am Bodensee geht man fast ein !


mplementation


uses shellapi;

{$R *.dfm}


procedure TForm1.Button1Click(Sender: TObject);

var 

  cmd, par, fil, dir: PChar;

begin

  // die Verbindung aufbauen

  // rasdial.exe entryname username password

  cmd := 'open';

  fil := 'rasdial.exe';

  par := PChar(edtEntry.Text + ' ' + edtUser.Text + ' ' + edtPass.Text);

  dir := 'C:';

  // call rasdial.exe with Shellexecute

  // rasdial mit Shellexecute aufrufen

  ShellExecute(Self.Handle, cmd, fil, par, dir, SW_SHOWMINNOACTIVE);

end;



procedure TForm1.Button2Click(Sender: TObject);

var 

  cmd, par, fil, dir: PChar;

begin

  // Verbindung zum Internet abbrechen

  cmd := 'open';

  fil := 'rasdial.exe';

  par := PChar(edtEntry.Text + ' /DISCONNECT');

  dir := 'C:';

  ShellExecute(Self.Handle, cmd, fil, par, dir, SW_SHOWMINNOACTIVE);

end; 

Ach ja, Indy gibt es als FreeWare, die beziehen sich aber auf Internetprotokolle, nicht auf Windows Funktionen zum Herstellen der Verbindung würd ich sagen.

  • Autor

Danke für den Code ! Ich würd ja auch lieber Indy-Komps nehmen, aber ich arbeite an dem Projekt nicht alleine und mein Chef würde im Dreieck springen, wenn ich einfach Komponenten installiere, egal ob Freeware oder nicht.

Grüße aus dem sonnigen (und heissen) Oberschwaben

Frank

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.