0123: A 'thiscall' function requires a pointer
Compiler found a foreign function declaration with thiscall
calling convention, but didn't find a required argument for the function.
thiscall
functions are methods of a class, and by definition work with many instances of that class. They must have at least one argument that will identify the instance on which this method is called. Imagine a method Destroy
of class Car
:
Without an instance argument it is unclear what particular car needs to be destroyed.
Possible solutions:
define a parameter of type
int
in the function declaration:
When calling this method, you must also provide a valid argument:
Previous0122: A non-static function can't be called by nameNext0124: Foreign functions can't return more than one value
Last updated