K8061.dll with vfp9

hi, velleman;
i assembled my k8061 2 weeks ago. it is working fine with the demok8061. i have the following problems looking for answers:-

  1. does the k8061.dll work with visual foxpro 9.0(vfp9) which is very similar to visual basic 6.0?
  2. how to contain/show the return value(longint) as instructed in the manual. i tried on a text box by click event with codes as follows:
    declare integer opendevice in k8061.dll as longint
    thisform.label8.caption=longint
    ..................
result: program error   variable 'longint' is not found

another set of codes:

   declare integer opendevice in k8061.dll as cardaddress
   declare integer powergood in k8061.dll as boolean
   if messagebox("do you want to close device?",4+32,"system notice")=6
   declare integer closedevice in k8061.dll
   thisform.init
   else
   thisform.init
   endif
   thisform.init

i expect a -1 and a T to be posted in the text box. the codes seem to be running but i cannot detect any response from the card.
do you have any advice for this?
regards.
from kit

That’s because Visual FoxPro doesn’t have a longint, only LONG or INTEGER.

This doesn’t really do anything. It just tells your compiler (it ‘declares’) that those functions exists in K8061.dll. After you did this, you need to actually call each function.

More information on MSDN:
msdn.microsoft.com/en-us/library/ydcf39aa(VS.80.aspx