Hi , I debug the code below:
include <windows.h>
include <iostream>
typedef VOID(CALLBACK * mPCH341_NOTIFY_ROUTINE) ( // É豸ʼþ֪ͨ»Øµ÷³ÌÐò
ULONG iEventStatus); // É豸ʼþºÍµ±Ç°×´Ì¬(ÔÚÏÂÐж¨Òå): 0=É豸°Î³öʼþ, 3=É豸²åÈëʼþ
define CH341_DEVICE_ARRIVAL 3 // É豸²åÈëʼþ,ÒѾ²åÈë
define CH341_DEVICE_REMOVE_PEND 1 // É豸½«Òª°Î³ö
define CH341_DEVICE_REMOVE 0 // É豸°Î³öʼþ,ÒѾ°Î³ö
BOOL WINAPI CH341SetDeviceNotify(
ULONG iIndex,
PCHAR iDeviceID,
mPCH341_NOTIFY_ROUTINE iNotifyRoutine);
if (CH341SetDeviceNotify(
ULONG iIndex,
PCHAR iDeviceID,
mPCH341_NOTIFY_ROUTINE iNotifyRoutine) == 1) {
cout << "usb port connected";
}
And receive the error E0169 which concerns the line of 'if' statement.How can I fix it?
Please help
Thanks