11-02-2016, 04:37 PM
C/C++ void is not a type. It is a keyword that in different contexts means different things:
void as a function return type means "does not have a return type", "returns nothing". In QM the function should begin with "function param1 param2 ...".
void* means "any pointer type". You can assign any pointer type without casting. PVOID is void*. In QM can be used byte*, shorter !*.
QM also has "this". Like in C++, it can be used in class member functions. Pass 0 if don't need. Or pass address of some variable.
void as a function return type means "does not have a return type", "returns nothing". In QM the function should begin with "function param1 param2 ...".
void* means "any pointer type". You can assign any pointer type without casting. PVOID is void*. In QM can be used byte*, shorter !*.
QM also has "this". Like in C++, it can be used in class member functions. Pass 0 if don't need. Or pass address of some variable.