AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Prism FTP Client Class in Delphi .NET 1.1
Thema durchsuchen
Ansicht
Themen-Optionen

FTP Client Class in Delphi .NET 1.1

Ein Thema von FaNIX · begonnen am 25. Okt 2007 · letzter Beitrag vom 25. Okt 2007
Antwort Antwort
FaNIX

Registriert seit: 8. Okt 2007
36 Beiträge
 
#1

FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 08:52
I'm looking for a FTP Client Class that allows me to upload/download files to and from a FTP Server. I want a Delphi .NET class, anyone know of such a class, because the default .NET 1.1 framework doesn't have a ready to use ftp client class, as far as i know...

I found this article, but it's in VB, so i don't really want to convert that to Delphi Code, it probably won't even work....

VB Class Example
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)

Registriert seit: 25. Jun 2002
Ort: Hausach
7.606 Beiträge
 
#2

Re: FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 09:32
Zitat von FaNIX:
I found this article, but it's in VB, so i don't really want to convert that to Delphi Code, it probably won't even work....
It will work. .NET is .NET and the Classes / Methods are all the same in VB.NET and in Delphi.NET.

But the easier option is to compile that VB Code with the framework VB compiler into a library and simply consume that assembly from delphi code.
Sebastian Gingter
Phoenix - 不死鳥, Microsoft MVP, Rettungshundeführer
Über mich: Sebastian Gingter @ Thinktecture Mein Blog: https://gingter.org
  Mit Zitat antworten Zitat
FaNIX

Registriert seit: 8. Okt 2007
36 Beiträge
 
#3

Re: FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 09:34
Zitat von Phoenix:
Zitat von FaNIX:
I found this article, but it's in VB, so i don't really want to convert that to Delphi Code, it probably won't even work....
It will work. .NET is .NET and the Classes / Methods are all the same in VB.NET and in Delphi.NET.

But the easier option is to compile that VB Code with the framework VB compiler into a library and simply consume that assembly from delphi code.
I like the second option, sounds a bit better, but i have no idee how to do this, please advice?
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)

Registriert seit: 25. Jun 2002
Ort: Hausach
7.606 Beiträge
 
#4

Re: FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 09:49
The VB.NET Compiler is shipped with the .NET Framework. It's the vbc.exe.
You simply take the class, use the vbc.exe on it with the parameter /target:library and sepcifiy the out file. What you get should be a .dll containing the ftp class you can use frmo your delphi code when you add a reference to that assembly to your project.
Sebastian Gingter
Phoenix - 不死鳥, Microsoft MVP, Rettungshundeführer
Über mich: Sebastian Gingter @ Thinktecture Mein Blog: https://gingter.org
  Mit Zitat antworten Zitat
FaNIX

Registriert seit: 8. Okt 2007
36 Beiträge
 
#5

Re: FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 10:00
Zitat von Phoenix:
The VB.NET Compiler is shipped with the .NET Framework. It's the vbc.exe.
You simply take the class, use the vbc.exe on it with the parameter /target:library and sepcifiy the out file. What you get should be a .dll containing the ftp class you can use frmo your delphi code when you add a reference to that assembly to your project.
Could work, but i can't seem to find the downloadable code from that example, this sucks...
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)

Registriert seit: 25. Jun 2002
Ort: Hausach
7.606 Beiträge
 
#6

Re: FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 10:02
Well.. sometimes Copy&Paste is the right way to go
Sebastian Gingter
Phoenix - 不死鳥, Microsoft MVP, Rettungshundeführer
Über mich: Sebastian Gingter @ Thinktecture Mein Blog: https://gingter.org
  Mit Zitat antworten Zitat
FaNIX

Registriert seit: 8. Okt 2007
36 Beiträge
 
#7

Re: FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 10:07
Zitat von Phoenix:
Well.. sometimes Copy&Paste is the right way to go
Thing is, dont know much of VB, so i have no idee what the class layout should look like...
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)

Registriert seit: 25. Jun 2002
Ort: Hausach
7.606 Beiträge
 
#8

Re: FTP Client Class in Delphi .NET 1.1

  Alt 25. Okt 2007, 10:09
Uh. I can't help at that, sorry. I never touched VB. Like the most of us Delphi guys
Sebastian Gingter
Phoenix - 不死鳥, Microsoft MVP, Rettungshundeführer
Über mich: Sebastian Gingter @ Thinktecture Mein Blog: https://gingter.org
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:38 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