Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Will a .Dll that works in VS.Net_2003 run in VFP7/8
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00822850
Message ID:
00822871
Vues:
14
Hi Gerard,

Try
DECLARE Long DEVICETODESKTOP IN adofiltr.dll ;
		String desktoplocn, String tablelist, ;
		Long sync, Long overwrite, String devicelocn   

DBintRetVal = DEVICETODESKTOP(txtDesktopDB.Text, "", 0, 1, txtPPCDB.Text)
If intRetVal <> 0
...
BTW, you can use < pre > and < /pre > tags (w/o spaces) to preserve code formatting.



>I have a .dll sample (This is a VB6 sample I think) but i'm wondering how this could be converted into VFP code:
>(This Dll is a ActiveSync piece of code that allows DeskTop access files (.Mdb) to be copied and translated to PocketPC access file (.cdb)
>Declare Function DEVICETODESKTOP Lib "adofiltr.dll" _
>(ByVal desktoplocn As String, _
>ByVal tablelist As String, _
>ByVal sync As Boolean, _
>ByVal overwrite As Integer, _
>ByVal devicelocn As String) As Long
>
>Dim intRetVal as integer
>'upload from the local DB to the desktop
>DBintRetVal = DEVICETODESKTOP(txtDesktopDB.Text, _
>"", False, True, txtPPCDB.Text)
>If intRetVal <> 0 _
>  Then msgbox "An error occurred transferring the data" _
>Else _
>  msgbox "Upload Successful"_
>End If
>Exit Sub
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform