I need to use a specific method to do the work - it cannot be any other method or assembly. The method takes the following parameters:
void method(bool* isOn) {}
I am trying to use false for the isOn parameter, but Visual Studio says: "Argument 1: cannot be converted from type" bool "to" bool * ".
How do I convert / use bool * so that it acts properly?
Thanks in advance.
Edit: this is not a duplicate of the bool * utility in C # , because I am specifically asking about conversion from a pointer to a type and the type itself. In addition, the thread mentioned requires the use of bool *, but does not directly answer my question.
source
share