mardi 18 décembre 2018

c++ win forms how to print out a void * in textbox ?

how can i print out in textbox a void * value ? here is the code:

1.i been trying casting but nothing works since its using System String.


uintptr_t offsetFromBuffer = (uintptr_t)internalAddress - (uintptr_t)&buffer;       
void * healthDecAddress = (void*)(currentChunk + offsetFromBuffer);
richTextBox1->Text = healthDecAddress; // how can i do it right ?

Aucun commentaire:

Enregistrer un commentaire