Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Using Dart Ftp Active X in Windows Service
sathya76

From: Lubbock, TX USA
Posts: 13
Member Since: 06/24/02
posted June 25, 2002 1:19 PM

I have to create a server(Windows Service) in VB.NET.

I am using the dart FTP Active X component to do some FTP stuff with the mainframe. (MVS Ftp Server).I created the server as an windows application and accessed it through multiple clients and its working just fine.

Now I want to make that windows application as a windows service. But when I create a windows service, I am unable to use the FTP component there..

Is there anyway out. Any help would be appreciated.

Thanks

Sathya

K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 25, 2002 6:17 PM

Hi Sathya,
You can reference the control and then instantiate it dynamically. For example:
Private WithEvents Ftp As New DartFtp.FtpClass()
-ken
sathya76

From: Lubbock, TX USA
Posts: 13
Member Since: 06/24/02
posted June 26, 2002 10:03 AM

Thanks Ken.. for your response. The problem is unable to reference the component in windows services screen. So the dart FTP is not recognized when I try to instantiate it.

Sathya
sathya76

From: Lubbock, TX USA
Posts: 13
Member Since: 06/24/02
posted June 26, 2002 12:49 PM

I got the FTP component to work in windows service.

My new problem is

When I instantiate it statically :

I get the reply from the FTP server through the following function

Public Sub Ftp1_Progress(ByVal eventSender As System.Object, ByVal eventArgs As AxDartFtp._IFtpEvents_ProgressEvent) Handles Ftp1.Progress

    FTPReply = eventArgs.reply
End Sub

Now as I am instantiating it dynamically,

the AxDartFtp is not there and the DartFtp does not have "._IFtpEvents_ProgressEvent" and the code does not recognize Ftp1.progress

Please let me know, how can I get the reply from the FTP server when an event is trigerred.

Thanks
Sathya
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted June 26, 2002 12:59 PM

Did you dim the component using the WithEvents keyword? Look at Ken's previous post in this topic.

J. Belanger
sathya76

From: Lubbock, TX USA
Posts: 13
Member Since: 06/24/02
posted June 26, 2002 2:46 PM

I got it... thanks very much..

Sathya
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX