Develop FTP clients with Indy9

xiaoxiao2021-03-06  41

Develop FTP client with Indy9_04

- Use TIDFTP controls in DLL

Roger yang

At first, the instance of creating TIDFTP directly in DLL was not successful. After a few times, I still add a form as a container for the TIDFTP control. Use the new instance of the form in the DLL. After the form instance is created, the FTP operation can be used to complete the FTP operation using the various methods of TIDFTP. Creating a form when running in DLL TFRMDLL * frmdll = new tfrmdll (null); if you want to display this form: frmdll-> showmodal (); my purpose is just the function of using the TIDFTP control Therefore, it is not necessary to display the form. Finally, to be released on the formal resources and cannot leave the memory vulnerability. DELETE FRMDLL;

转载请注明原文地址:https://www.9cbs.com/read-82773.html

New Post(0)