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 » U++ Library support » U++ Core » BUG? or Not BUG? LoadFile(filename) and then getting wrong data
Re: BUG? or Not BUG? LoadFile(filename) and then getting wrong data [message #33447 is a reply to message #33445] Mon, 08 August 2011 10:41 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
silverx wrote on Mon, 08 August 2011 09:48


Ok, I have attached a file. It has the smallsample2.dat which is the input file. It is in byte 12 and a couple of bytes after that it shows in the promptok as being a negative number.



I have following output for "smallsample2.dat" file, using first variant of example program:
      0: 50 4b  3  4 14  0  0  0  8  0 34 5c c3 3e 26 c8 | PK........4\Ã>&È
     10: 51 e7 d5                                        | QçÕ


Here, we can see, that control characters used (chars with '.') on the right side of the output. They don't have printable characters (but you could specify them, which depends from implementation (e.g. by special images, character sequences, etc.)). However, as Mirek said, you just need correct conversion to byte to see integer values from char, then PromptOK will show it.

Edit: Corrected sentence about PromptOK.

[Updated on: Mon, 08 August 2011 19:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Polymorphic Array doubt
Next Topic: Need help about the codepage!
Goto Forum:
  


Current Time: Mon Aug 25 22:45:44 CEST 2025

Total time taken to generate the page: 0.04588 seconds