Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't pass parameter and call function in the DLL
Message
De
18/02/1999 21:24:08
 
 
À
18/02/1999 09:53:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00182255
Message ID:
00189114
Vues:
17
>Paul,
> You said there is no SHORT in DECLARE so the Short will change to String ?

No, change it to INTEGER.

>>Declare G_ICCPresent In V100_32.DLL SHORT ChannelNb, String @Response
>
>The below function i want to get the return value of Response, how ?
>>G_ICCPresent(const WORD16 ChannelNb,Byte *Response)
>>>G_ICCPrensent(0,&Response) &&Function call
>
>After call the G_ICCPresent the return value will store at Response right,
>i will do a compare statement, below is write in C:
>>If ((Response &0x004)==4) //compare the second bit is 1 or 0
>> return true;
>>else
>> return false;

Use the VFP BITTEST() function to test the 3rd bit from right.

>How can get the return value in VFP ?

I already posted the call for this function in a pervious message.

As Ed said, you should dig a little on memory management/pointers (syntax also) in C or hire somebody who knows these issues. Even with Ed's CLSHEAP class or my Pointers class or any other similar software, you still have to understand the basics of memory management and pointers in C.

For the above "if", the equiv. in VFP would be:

if BITTEST(ASC(LEFT(lcResponse, 1)), 2)

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform