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: Suppress error popups
User11

Posts: 11
Member Since: 04/29/02
posted May 6, 2002 12:51 PM

I'm using Delete method in VC++ and appropriately receiving a 550 error from the server. Can I suppress the FTP Tool popup error messages? I want to handle the error myself in my exception handler.
Thanks,
--Ken
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 6, 2002 1:10 PM


Hi Ken,
The controls do not inherently show popup messages. If you handle the errors you will not see them.
(The samples show message boxes because they were coded to do so). 
-ken

K M Drake
Dart Tech Support
User11

Posts: 11
Member Since: 04/29/02
posted May 6, 2002 3:09 PM

Thank you for waking me up on this Monday after a beautiful sunny weekend. I must be in a fog.

For some reason, when I call ftp.Delete(), the "550-Access denied" is not being caught by my try and catch block and being raised out of the application, hence the rogue messagebox. Debugger states "Warning: Uncaught exception in WindowProc (returning 1)". Don't know why the _com_error catch block is not firing.

The permissions on the file purposely do not allow delete. I thought I would be able to handle the access error. To code for this case, I would like to be able to get the file permissions before attempting to delete. Does the listentry.permissions property support NT or just Unix? We have an NT server.
Thanks,
--Ken
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 6, 2002 3:58 PM


Hi Ken,
No, just Unix. Take a look at the ListView sample. Do you see a message box when you get this error from the server with the sample? You should just see an entry in the status log.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX