Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM handling of C declarations
#10
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)