Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Desktop to Device API Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00530745
Message ID:
00531342
Vues:
10
Bob,

I think you got your whole answer, but just for completeness:

>DECLARE long DEVICETODESKTOP IN "adofiltr.dll" ;
> desktoplocn AS STRING, ;
> tablelist AS STRING, ;
> sync AS Boolean, ;
> OVERWRITE AS INTEGER, ;
> devicelocn AS STRING
>
>cDesktop = 'E:\Devel\Handheld\Data\Liquor.Mdb'
>cPPC = '\My Documents\Liquor.cdb'
>
>intRetVal = DEVICETODESKTOP(cDesktop, "", .f., .t., cPPC)

cDesktop = 'E:\Devel\Handheld\Data\Liquor.Mdb' + chr(0)
cPPC = '\My Documents\Liquor.cdb' + chr(0)

intRetVal = DEVICETODESKTOP( cDesktop, "" + chr(0), .f., 0, cPPC )

Strings going to a C/C++ dll should be null terminated unless one of the arguments to the function tells how long the string/buffer is.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform