questio about pointer
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
HI ALL in programming under dos i use this int a=5; int* p=&a; then (cout p) to print addres but how i can display address in EditBox THANKS :)
You could do something similar: [ccode] #include using std::ostringstream; void Func() { int a; int* p = &a; ostringstream stream; stream << p; SetDlgItemText(IDC_EDIT1, stream.str().c_str()); } [/ccode] Walter Gildersleeve Freiburg, Germany walter.gildersleeve@pe-gmbh.de