Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB6 code to VFP
Message
From
30/05/2003 13:11:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VB6 code to VFP
Miscellaneous
Thread ID:
00794608
Message ID:
00794608
Views:
47
Hi,

I am having trouble converting the VB6 code below to VFP (calls functions in a custom DLL):
Any guidance would be appreciated:
   Public Declare Function ACeNetConnect Lib "ACENET" (ByRef hObject As Long, _
        ByVal StationName As String, ByVal UserID As String, ByVal Password As String, _
        ByVal ConnectionType As SESSION_TYPE, ByVal SessionMode As SESSION_MODE, ByVal SessionName As String) As Long

    Declare Function ACeNetDisconnect Lib "ACENET" (ByRef hObject As Long) As Long

    Declare Function ACeNetPostRequest Lib "ACENET" (ByVal hObject As Long, _
        ByVal SendBuffer As String, ByVal SendBufferLength As Long, _
        ByVal SendOptions As Byte, ByVal ReceiveBuffer As String, _
        ByRef ReceiveBufferLength As Long, ByVal Timeout As Long, _
        ByRef ReceiveOptions As Byte) As Long
        
    Declare Sub ACeNetGetErrorText Lib "ACENET" (ByVal ErrorCode As Long, _
        ByVal ErrorText As String)

     Ret = ACeNetPostRequest(Handle, SendBuff, SendBuffLen, DATA_ONLY, Buffer, BuffLen, 20, RcvOptions)
Next
Reply
Map
View

Click here to load this message in the networking platform