Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to find an entry point
Message
From
17/03/2010 00:32:24
 
 
To
All
General information
Forum:
ASP.NET
Category:
Troubleshooting
Title:
Unable to find an entry point
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01455010
Message ID:
01455010
Views:
104
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
Next
Reply
Map
View

Click here to load this message in the networking platform