
inline asm on VC6 (loading the address of a member var in a register)
Hello,
my problem is "loading the address of a member var into a register".
Using VC7 i can load the address of a class member variable using
__asm mov eax,[this + member_var_name]
but with VC6 i get compilation error on that line, so i have to do instead:
int i = (int)&this->member_var_name;
__asm mov eax, [i]
Any other solution?
Thanks
Luca