Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrapper for C# .net #44

Open
jaydubal opened this issue Apr 24, 2023 · 0 comments
Open

wrapper for C# .net #44

jaydubal opened this issue Apr 24, 2023 · 0 comments

Comments

@jaydubal
Copy link

Hello, is there any working wraper for .net / c#? the one at https://github.com/mmcs-robotics/USB-Relay does not work.

And following code,

    [DllImport("usb_relay_device.dll", EntryPoint = "usb_relay_device_open_all_relay_channel", SetLastError = true,
    CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
    public static extern int usb_relay_device_open_all_relay_channel(int hHandle);

throws exception, 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

any help?

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant