Using dll functions

kaveh rahimi 61 Reputation points
2021-06-15T16:05:50.56+00:00

Hi ,I want to use the function: CH341OpenDevice(iIndex) I receive no errors,but when I run the code the value returns is not correct. I searched and found the function to write as below:
com.sun.jna.platform.win32.WinNT.HANDLE CH341OpenDevice(com.sun.jna.platform.win32.WinDef.ULONG iIndex)
This time I receive errors BC30451 & BC32017.
Please help me.
Thanks

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,580 questions
0 comments No comments
{count} votes