I need to call non-static C++ member functions
Hence i need to use the thiscall
calling convention.
Delphi doesn't support this calling convention.
So before i can call any of the member functions i have to manually push the parameters in the stack.
asm
mov ecx, myClassPointer
end;
This works fine but i am looking for a better way to do this.
At the moment i am calling the asm code everytime with the classpointer before calling the function, which isn't nice.
As i am no Delphi expert i am wondering if you can declare your own calling convention or automate the calling of those thiscall class methods.