I wrote a tip article and can't figure out how to upload the code. Is this described anywhere? Thanks.
M
mzdude
@mzdude
Posts
-
Uploading code -
type casting function pointersFor non class functions, the compiler knows exactly where the function resides. For class members it doesn't. class base { public: virtual void fn() {} }; class derrived { public: virtual void fn() {} }; base *p = new derrived; DWORD dw = (DWORD)p->fn; // which fn??