Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Writing hexadecimal to files
Re: Writing hexadecimal to files [message #32535 is a reply to message #32531] Tue, 24 May 2011 08:44 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3362
Registered: August 2008
Senior Veteran
Hello

U++ String handle very well binary data.

For example

String binaryC = binaryA + binaryB;


works perfectly.

The problem Tjerk had was when filling the String. Using this:

String a = "text";

does not serve for binary String, only for text, as far as it has no \0 inside.

The reason is that, with:
String a = "abc\0def";


¿how does the compiler know where is the end of the String?. We have to tell him by using, for example, Cat();


Best regards
Iñaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: dll example errors when trying
Next Topic: How to reference value of an item on a layout?
Goto Forum:
  


Current Time: Mon May 20 04:29:52 CEST 2024

Total time taken to generate the page: 0.00649 seconds