General information
Category:
Windows API functions
>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only