I have the following system:
-
Microsoft Vista
-
Microsoft Visual Studio 2005.
-
Dell Computer.
-
K8055
-
K8055 VC++ 2005 download from Velleman
-
I wrote a small test application using Win32 Windows (not Console) to turn on the Card Digital I/O. It’s as follows:
long int lngReturn;
long int Address;
long int Data;Address = 0L;
Data = 7L;
lngReturn = OpenDevice(Address);
SetAllDigital();
WriteAllDigital(Data); -
I compiled and linked it successfully with the K8055_C.h and K8055_C.lib file. I put the K8055D_C.DLL in the C:\Windows\System32 directory.
-
I plugged in the K8055 in my USB. The Device Manager under Human Interface Devices shows the USB device which the K8055 is connected as Manufacture ID 0x10CF; PID as 0x5500 and Rev 0.
-
The K8055 is in good working order because I tested it on my Mac.
-
When I ran the small demo, it did not set any of the I/O. I ran it in Debug and stepped through the code. I also ran it without the Debugger.
-
The return code from OpenDevice was 0. If I change the pin setting on the card to 1 (0x5501), it still showed as 0. The manual says that it should be -1 if device not found
What am I doing wrong and how do I fix it?
Regards, The Turtle