Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » StateInTextBuffer instead of StateInFile Collapse All
Subject Author Date
Jonas Gauffin Nov 25, 2005 - 6:25 AM

Is it possible to get all states in a textbuffer instead of saving it to a file?
I’m using a xml-based protocol between my server and client. Reading the existing statefile from disk and sending it would require me to implement a Base64 codec or similiar.

Jonas Gauffin Nov 25, 2005 - 9:05 AM

I’ve coded a class that handles it. It first saves the state to a file (like your sample), then read the file and encodes it to base64 and returns that as a std::string. Not the smoothest way, but it works..

Technical Support Nov 25, 2005 - 11:45 AM

Yes, that’s a correct solution.