Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of bytes of types declare in VB
Message
 
À
30/06/1999 10:18:07
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00235733
Message ID:
00235897
Vues:
26
>George,
>
>It's the crPESelectPrinter(njob,cdriver,cPrinter,cPort,@crdevmode) API for crystal reports. This is a VB function which has to be translated to VFP, The last crDevmode parameter can contain some info which is originally stored in a VB structure.
>
>Because I've got to know at which position i've got to poke my info in. Fortunately I did figure it out by trying. It seems that both INTEGER and LONG are 4 bytes long, only the order of the bytes seems to be different.

No, both INTEGER and LONG in Win32 are the same, including the order of the bytes.

>Now i'm facing a new problem (Sighhhhh): How do you translate an ANY datatype as an argument in a API call ?
>
You're referring to the structure I assume. Well, I've worked in VB, and if you'll post the VB structure declaration, I can probably show you how to convert it to VFP. This assumes that it can be converted, however. Certain structure members are difficult, if not impossible, to be properly converted in VFP.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform