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:
00530824
Vues:
19
Hi Larry,

Thank you Thank you Thank you very much!

This did the trick! As I look at my MSDN Docs I see
that no where does it say to use AS... So I am unsure as
to why I decided to leave that in there...

Thanx a Million...
Bob


>Bob,
>You don't need the AS in the parameter declaration section. Try:
>Declare Long DESKTOPTODEVICE in "adofiltr.dll" ;
>   string desktoplocn, ;
>   string tablelist, ;
>   integer sync, ;
>   integer overwrite, ;
>   string devicelocn
>
>Also, use Integer for Boolean. C-style DLLs will return a 0 for .F..
>
>HTH.
>
>>I was wondering if anyone would be able to help me convert the
>>following VB Code into VFP 6.0 Code. I have tried everything
>>I know (Didnt take very long, this I assure) to get this
>>to work, but I always get a "Too Many Arguments" error.
>>
>>Here's the VB Code:
>>
>>Declare Function DESKTOPTODEVICE 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
>>
>>And here's what I THOUGHT VFP should be... The VB Code
>>works in Visual Basic, of Course...
>>
>>DECLARE DEVICETODESKTOP IN "adofiltr.dll" ;
>> desktoplocn AS STRING, ;
>> tablelist AS STRING, ;
>> sync AS Boolean, ;
>> OVERWRITE AS INTEGER, ;
>> devicelocn AS STRING ;
>> as String
>>
>>Any help would be greatly appreciated...
>>
>>Thanx!
>>Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform