![]() |
string to pointer
Hi,
I'm writing an address into a file and later i need to read it as an address. I've copied this address into a character array and am having a lot of trouble trying to convert it back into a pointer. The pointer initially (when writing to the file) was a void pointer. Please help. here's what i tried: Code:
#include<iostream> |
Re: string to pointer
The output was :
OVERLOADED NEW mem handle:003552A0 buf:0012FE9 i needed the buf to hold the initial value. Please help and Thanks in advance. |
Re: string to pointer
What does the file contain?
(If you open it in a hex editor then you'll know exactly. Try xvi32) |
Re: string to pointer
Thank you but i got it. I wrote it as an unsigned long and read it back into a void * and it worked
:) |
| All times are GMT +5.5. The time now is 20:57. |