Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB6 code to VFP
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
VB6 code to VFP
Divers
Thread ID:
00794608
Message ID:
00794608
Vues:
45
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)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform