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.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi , I want to use if for a bool parameter how do I have to use it.
Is "if (CH341SetDeviceNotify=='true')" correct?
Please clarify me by an example.
Don't you read the doc ? =>
BOOL WINAPI CH341SetDeviceNotify( ULONG iIndex, PCHAR iDeviceID, mPCH341_NOTIFY_ROUTINE iNotifyRoutine );
Also see Expected a declaration.
If CH341SetDeviceNotify is a bool, you just need:
And if CH341SetDeviceNotify is not a bool, you could use
if (CH341SetDeviceNotify != 0)
You should keep in mind that BOOL and bool are not the same thing.
Also TRUE/FALSE are not the same as true/false.
What is the difference between BOOL and bool?