You can use the DLL procedure SetI2CprinterPortAddress.
If you do not have the latest DLL that supports SetI2CprinterPortAddress call I’ll send it to you by e-mail.
In Visual Basic VB6.0: SetI2CprinterPortAddress &hD080
In Delphi: SetI2CprinterPortAddress($D080);
In C: SetI2CprinterPortAddress(0xD080);
I got the files and declared the function but now when I start the program I get an error:
[quote]PInvokeStackImbalance was detected
Message: A call to PInvoke function ‘SetI2CprinterPortAddress’ has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. [/quote]
I am programming in vs2005.
PS
I am not able to debug this in vs2005, but when I build the prog. and start te program by the main exe then it works :-S
[quote=“VEL255”]You can use the DLL procedure SetI2CprinterPortAddress.
If you do not have the latest DLL that supports SetI2CprinterPortAddress call I’ll send it to you by e-mail.
In Visual Basic VB6.0: SetI2CprinterPortAddress &hD080
In Delphi: SetI2CprinterPortAddress($D080);
In C: SetI2CprinterPortAddress(0xD080);[/quote]
Hello, I do not have the latest file k8d.dll. Can you send me, thank you.
I have the same problem, I am unable to communicate with my K8000 interface PCI port / /.
Please replace both the k8d.dll and k8e.exe in the Windows\System32 folder and in your application folder with the new ones.
There is also documentation in the zip package how to use the new function SetI2CprinterPortAddress.