*((string*)(varname)) = readstring;
varname=reinterpret_cast<LPVOID>(&readstring);
*reinterpret_cast<LPVOID*>(varname) =(char*) readstring.c_str();