well void pointers dont know the data type but i dont think its good practice. Also i dont know if you can just goto an address like that. I dont even know how you would get that address of a variable into a string. like this
string str = &somestring; // i dont think this is correct at all
What exactly are you trying to do p4ilul. Are you trying to get a value from a pointer by dereferencing maybe?? We need to know in order to help but i dont think the above is possible or usefeul really
blackcoder hit the nail on the head as far as I can tell.
1 2 3
volatilechar* ptr = volatilechar*(0x0CA8);
cout << int(*ptr); // read the number at that address
The thing that's really the problem is.... what makes you think that 0x0CA8 is a valid address? Raw I/O like this isn't wise unless you're doing really low-level hardware I/O (like writing a driver or something).