The answer was given by Hans Passant in a comment, it is: Just cast to void*
to get a raw pointer value.
How can I get the memory address of a C++/CX ref type object?
-
31-05-2022 - |
سؤال
Windows Runtime introduced new ref objects that use the ^
notation which is basically a smart pointer according to the docs. I'm trying to output some debugging information and I'd like to print the memory address of one of these C++/CX ref objects. How can I do that?
المحلول
لا تنتمي إلى StackOverflow