Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to find an entry point
Message
De
17/03/2010 00:32:24
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Problèmes
Titre:
Unable to find an entry point
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01455010
Message ID:
01455010
Vues:
105
I am able to make use of the FtpSetCurrentDirectory function of the WinINet.dll file in VFP. However, from VB.NET, that particular function returns an error.

This is the initialization:
Private Declare Function FtpSetCurrentDirectory Lib "WinINet.dll" _
         (ByVal nFtpSession As Integer, ByVal cDirectory As String) As Integer
This is where the error occurs:
                If FtpSetCurrentDirectory(nFTPSession, "/" + cRemoteDirectory) = 0 Then
                    lError = True
                    cError = oApp.StrTran(cTheFTPDirectoryDoesNotExist, "##cRemoteDirectory##", cRemoteDirectory)
                    Close()
                    Exit Try
                End If
The error message is:

"Unable to find an entry point named 'FtpSetCurrentDirecotry' in DLL 'WinINet.dll'."

There must be something I am missing here. This is accessing the same file as from VFP. I just don't understand why in VB.NET I cannot make use of it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform