jeudi 6 mars 2014

[Help] Getting function pointer from object topic




Hey guys!

I need the function pointer (to the function "Release") of my ID3DXFont* object.
How to get it?

I tried already with:

Code:


ID3DXFont* pFont;
ULONG (__stdcall ID3DXFont::*myFunc)(void) = &ID3DXFont::Release;

Call<ULONG>((void*)&myFunc, 0); // Call<type>(void* funcLocation, numOfParams, ...);


But it doesnt work because the address is not correct
can u guys help me?

meldino





Aucun commentaire:

Enregistrer un commentaire