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:
00822861
Vues:
16
Hi Anatoliy. Thanks for your reply.

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
_______________________________________________________________________



=====================================================================

>Properly declared and provided with valid parameters almost any DLL function works in Visual FoxPro.
>
>Rarely not, when an external function requires a callback function as a parameter. That exceeds VFP capabilities.
>
>Sometimes input and output structures make a call overcomplicated. But for most cases there is a solution.
>
>Check DECLARE section in VFP Help.
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp/html/lngDECLARE___DLL.asp
>
>Also check this link
>http://www.news2news.com/vfp
>showing FoxPro declarations for hundreds of external functions.
>
>Give more details on the DLL you want to use.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform