[b][red]This message was edited by bilderbikkel at 2005-9-17 5:35:21[/red][/b][hr]
Does anyone know how to use ShowMessage on a memory address?
TStrings * strings = RichEdit1->Lines;
ShowMessage("Address is: " + TheMagicFunction(strings) );
In which TheMagicFunction is a VCL/CLX function? Otherwise I have to solve it the way below, which is too artificial in my taste (as it only converts an address to an integer).
Or does anyone know how to convert a std::string to an AnsiString (solves the problem below)?
Thanks, bilderbikkel#include #include
std::string addressToString(const void* x)
if (!(o << x)) return "ERROR";
int addressToInt(const void* x)
const std::string myString = addressToString(x);
//Under a Button or whatever