satur9nine
satur9nine

Reputation: 15042

How can I get the memory address of a C++/CX ref type object?

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?

Upvotes: 1

Views: 535

Answers (1)

satur9nine
satur9nine

Reputation: 15042

The answer was given by Hans Passant in a comment, it is: Just cast to void* to get a raw pointer value.

Upvotes: 2

Related Questions