• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Console::WriteLine(pointer*) displays boolean instead of mem location

Hey I am kinda new to c++.net.  How come when I use the WriteLine() method with a pointer in the argument, the console displays only true or false instead of the mem location?

thanks
0
yattias
Asked:
yattias
1 Solution
 
lakshman_ceCommented:
Type case to int
For e.g.
String *str = new String("Hello");
Console::WriteLine((int)&str);
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now