Search found 2 matches

by phyllostachys
Fri 9. May 2025, 20:39
Forum: PCAN-Basic
Topic: CAN_SetValue returns Unknown Error
Replies: 3
Views: 15078

Re: CAN_SetValue returns Unknown Error

While trying to enable logging, I realized that Buffer is supposed to be the address of the thing storing the parameter setting. I think I got hung up because it's a void pointer and the thing we were trying to pass in is a void pointer. It's obvious why this is wrong when you are trying to set ...
by phyllostachys
Thu 8. May 2025, 19:49
Forum: PCAN-Basic
Topic: CAN_SetValue returns Unknown Error
Replies: 3
Views: 15078

CAN_SetValue returns Unknown Error

I was trying to implement the event system on Windows in a Rust library that wraps the PCANBasic API. I only get back Unknown Error (0x10000) whenever I make this call. Snippet of code looks like this, copying from the C++ example.

// HANDLE iBuffer = CreateEvent(NULL, FALSE, FALSE, L"");
let ...