A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Hi, kavehrahimi-5744
The error E0169:
if (CH341SetDeviceNotify(
ULONG iIndex,
PCHAR iDeviceID,
mPCH341_NOTIFY_ROUTINE iNotifyRoutine) == 1) {
cout << "usb port connected";
}
if(CH341SetDeviceNotify()) should be used in main() or other function.
The function needs to be defined and requires three arguments as Viorel-1 said.
By the way, cout needs to be changed to std::cout.
Best regards,
Minxin Yu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.