Thread: Special Symbols

Results 1 to 6 of 6
  1. #1
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted

    Special Symbols

    Hi,
    I'm trying to read dll files by opening them in a Textbox/RTB but it don't work, It only shows "MZ" text.
    Tried to change the encoding to: "Default, UTF7/8 & Unicode" still the same.
    I just want to read the inside text of the dll like Notepad/++ do.

    Thanks.
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  2. #2
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    .dll files are compiled code (machine language instructions)..NOT plain-text source code

    what do you hope to accomplish by viewing compiled code?
    Last edited by abuckau907; 07-25-2014 at 08:01 PM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  3. #3
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    Quote Originally Posted by abuckau907 View Post
    .dll files are compiled code (machine language instructions)..NOT plain-text source code

    what do you hope to accomplish by viewing compiled code?
    I don't want to decompile it.
    I'm creating a simple program to view dll text for myself, To check for advertisement & stuff.
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  4. #4
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    so post code and ask a question...

    1. read all bytes of file
    2. output each byte to textbox

    where is your confusion?
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  5. #5
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    Quote Originally Posted by abuckau907 View Post
    so post code and ask a question...

    1. read all bytes of file
    2. output each byte to textbox

    where is your confusion?
    I use My.Computer.FileSystem.ReadAllText to read the file.
    Changed ReadAllText to ReadAllBytes
    But I can't import the bytes/text to textbox.

    Code:
    Dim ReadDll = My.Computer.FileSystem.ReadAllBytes(
                "C:\*****")
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  6. #6
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    It's do to with there being bytes that are == 0 inside the file..normally a 0 byte signifies the end of string. To my surprise, System.Text.Encoding.ASCII.GetString() actually goes through the whole byte array, despite any 0's, and returns a string the same length as the byte array. If you debug with the IDE, you can check the value of the string returned and it's the full string.
    So...the problem is with the text box --> as soon as it encounters a 0 byte it assumes it's the end of the string.

    To fix, after reading the bytes from file into an array, I loop over the array and change any 0 bytes to the ascii value of '?'.

    code:


    seems right
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  7. The Following User Says Thank You to abuckau907 For This Useful Post:

    [MPGH]Mayion (07-26-2014)

Similar Threads

  1. BF2 special forces HELP
    By qwerty1029 in forum Suggestions, Requests & General Help
    Replies: 9
    Last Post: 01-05-2007, 11:22 PM
  2. found a special song in warrock
    By COCKBLAST in forum WarRock - International Hacks
    Replies: 4
    Last Post: 12-23-2006, 12:32 AM
  3. 4 special signatures.
    By poulet28 in forum Art & Graphic Design
    Replies: 5
    Last Post: 08-25-2006, 07:50 AM
  4. Special Request
    By kvmn8 in forum Art & Graphic Design
    Replies: 24
    Last Post: 08-15-2006, 09:59 PM
  5. Dave84311 - Read for something special!
    By Bull3t in forum General
    Replies: 20
    Last Post: 05-16-2006, 01:10 AM