Jump to content

Binary?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guests
I dont understand the difference between binary data files from other programs and what my program produces. Let me start by example, this is what another programs data file is which is just a list of connections (note: all of it would not paste):

’ôýíÉ8ý$Øâß¿Ï?

After declaring a binary write and writing my information to a file this is what I get:

Binary Writer ClassNumbers will appear nextÇ/

What gives? Why can I see the text in mine and not in the one above? Where can I find information about this? I've searched the net but all I find is tutorials on how to write the same code as my program produces.

I'm using Visual Studio 2005 Managed c++ to produce these results.

#2
RobSoftware

RobSoftware

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
As I understand it each compiler will produce its own "binary" looking code. Java vs C++ will look different. I know in 2005 c++ the text in Binary mode is still legible. You will have to encrypt anything that you do not want the user to see or change.

#3
Void

Void

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 411 posts

RobSoftware said:

As I understand it each compiler will produce its own "binary" looking code. Java vs C++ will look different. I know in 2005 c++ the text in Binary mode is still legible. You will have to encrypt anything that you do not want the user to see or change.

I don't know about each one producing its own binary but in VS.NET 2005 the text is very legible in binary. int, double, float, etc... isn't legible though.
Void

#4
Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guests
So there is no way to hide text in binary unless I encrypt first?

#5
brackett

brackett

    Programmer

  • Members
  • PipPipPipPip
  • 192 posts
Are you doing a binary serialization of a class/structure?