How to assing internal process memory address to pointer object in C++ via standard conforming method?
For example, this is Undefined behavior, coz its dont defined in C++ Standard:
CInterpretator* pInterpretatorObj= reinterpret_cast<CInterpretator*>(0x1000FFFF);
or this, without reinterpret_cast, but with same effect:
CInterpretator* pInterpretatorObj= static_cast<CInterpretator*>(static_cast<void*>(0x1000FFFF));
Maybe using .asm file with public function who return address of object, and using this "foreign" function in C++ program code for get address is standard conforming or not?
But for me its very ugly. Maybe there are good methods for this.