|
-
Dec 27th, 2022, 11:05 AM
#4
Thread Starter
Lively Member
Re: VB6 and (S)FTP
 Originally Posted by Schmidt
We use the Chilkat-COM-Dll (for secure Mailings, and secure FTP).
Not freeware, though stable, well-maintained and well-hardened.
Olaf
I also bought the chilkatsoft and was happy at first. Now a first problem has arisen with the DLL. Maybe it doesn't apply to you at all. If so, how could you solve this?
I use my AX-DLLs and OCX always regfree. This prevents a lot of trouble. Since I usually have RC6 with me, I use RefFree here:
Code:
Set glob = New_c.RegFree.GetInstance(App_Path & "\ChilkatAx-9.5.0-win32.dll", "ChilkatGlobal"
Set sftp = New_c.RegFree.GetInstance(App_Path & "\ChilkatAx-9.5.0-win32.dll", "ChilkatSFtp")
This works fine. However, there are also object instances in the DLL that are created by the DLL and end up as function returns in my code:
Code:
Set dirListing = sftp.ReadDir(dHandle)
From this line on, the chilkatsoft DLL is loaded a second time, this time from the place where the DLL is registered. However, in the exe at the customer the DLL is not registered and there it crashes.
This prevents the use of the DLL at least in RC6 RegFree mode. Remains only the way about a manifest. I have not tested that yet.
W. Wolf
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|