Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired

    Question getting REG_BINARY data from the registry editor into a textbox!

    im trying to load the KEY data,




    for this example i first use the DATA to load it (because that is in ascii and not in hex binary)





    oke let try it out!




    it works!

    now lets try the KEY data in hex binary!
    so i changed the code so it loads the KEY information



    oke lets change the code



    changed the code! now lets try to run it!



    And then i got a error, but i dont know how to fix it

    please help me! thanks!

  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
    Conversion from type Byte() (array) to 'String' is not valid.

    aka. one of the parameters is wrong.



    ^^If it works for strings, but not "binary data", maybe check the 3rd parameter. I don't think it's supposed to be ""


    for the 3rd parameter, type in RegistryValueOptions. (see the period) for available values.

    OR, the value being returned can't be assigned to a text box.
    Last edited by abuckau907; 01-28-2013 at 02:12 AM.
    '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. The Following User Says Thank You to abuckau907 For This Useful Post:

    hugio88 (01-28-2013)

  4. #3
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired


    i tried binary(i also tried string), but that didnt work... still the: conversion from type 'byte()' to typte 'String' is not valid. Error

    why is it that the value cant get into a textbox, its just a key...

    also, in what thing(label?) could it be returned?

    Last edited by hugio88; 01-28-2013 at 02:25 AM. Reason: extra question

  5. #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
    .Text = An Object

    GetValue() Returns OBJECT. .Text is STRING

    Dim someBytes() as Byte

    someBytes = GetValue() - maybe? apparently it's not a string (.text)
    '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.

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

    hugio88 (01-28-2013)

  7. #5
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired
    so what do i need to do now..
    because i want to get it in a textbox....
    and its given me this error:



    code i use:
    so how do i change it to get it into the textbox! still a hard problem (not the best VB.net coder, just started )


  8. #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
    google how to convert an array of bytes into a string. There are ways.

    bytes = TextBox1.Text is very very very wrong.

    TextBox1.Text = bytes // closer

    but u can't set a STRING == to a BYTE (array) . convert the byte array into a string.
    ie. .Text = Ascii.FromBytes(bytes) or some other way to convert bytes to strings.


    There is no 1 way to do this because 'strings' can be a different data type --> Ascii vs Unicode for example. 1 bytes vs 2 for each letter. You have to understand data types.


    datatype = datatype

    you can't do

    string = byte array


    just like you wouldn't do

    integer32 = byte array etc etc.

    so what do i need to do now.. is a pretty...not good question. NEED is def. the wrong word.
    Last edited by abuckau907; 01-28-2013 at 03:18 AM.
    '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.

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

    hugio88 (01-28-2013)

  10. #7
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired
    Quote Originally Posted by abuckau907 View Post
    google how to convert an array of bytes into a string. There are ways.

    bytes = TextBox1.Text is very very very wrong.

    TextBox1.Text = bytes // closer

    but u can't set a STRING == to a BYTE (array) . convert byte array to string.
    yeah im sorry, im not the greatest coder! but i will try to google it!

  11. #8
    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
    I could just paste you the code, but I'm not sure that will fix the root of the problem. I was trying to help you figure it out for yourself. If you have questions: ask, or read. If you haven't learned 1 programming language yet: get a book (buy or library or .pdf) and learn all the aspects of programming before trying to do something extremely specific like access the windows registry.
    '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.

  12. #9
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired
    i googled it, this is what i got..



    so when i tried to run and i press the button to get the information.. this is what came out of it



    but that is not right...

    EDIT: what is at the first sentence is registryvaluekind.binary
    Last edited by hugio88; 01-28-2013 at 03:26 AM.

  13. #10
    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
    idk the registry. Look up REG_SZ and REG_BINARY means
    '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.

  14. #11
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired
    Quote Originally Posted by abuckau907 View Post
    idk the registry. Look up REG_SZ and REG_BINARY means

    REG_SZ is just normal ascii text but REG_BINARY is in hex binary... somehow i need to convert that

  15. #12
    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
    define 'what is hex binary' and you'll have the solution
    '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.

  16. #13
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired
    Quote Originally Posted by abuckau907 View Post
    define 'what is hex binary' and you'll have the solution
    by hex binary i mean:
    (REG BINARY) in registry




    EDIT: i dont know what in what kind of text its written... but i thought of HEX, like when you use an HEX editor.. if you know what i mean
    Last edited by hugio88; 01-28-2013 at 04:20 AM.

  17. #14
    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
    I know what you meant: "the stuff in the registry under BINARY" ...but do you understand what binary is, and what hex is, and what strings are? You have to understand those first. I'm not sure what else to say, short of posting code.


    It's all just bytes. Each 2 letters, ie. 5F, 00, 13, CC, are all just bytes. if it's ascii, 1 bytes = 1 letter

    so you must (must?) convert the array of bytes into an array of letters. There must be some .net functions to do this.
    Last edited by abuckau907; 01-28-2013 at 04:37 AM.
    '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.

  18. #15
    hugio88's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    9
    My Mood
    Inspired
    Quote Originally Posted by abuckau907 View Post
    I know what you meant: "the stuff in the registry under BINARY" ...but do you understand what binary is, and what hex is, and what strings are? You have to understand those first. I'm not sure what else to say, short of posting code.


    It's all just bytes. Each 2 letters, ie. 5F, 00, 13, CC, are all just bytes. if it's ascii, 1 bytes = 1 letter

    so you must convert the array of bytes into an array of letters. There must be some .net functions to do this.
    and thats the problem, i cant convert it, and when i google it my program fills in weird code things. the only thing that i need in my textbox are the 69 13 AC 5F en more that i blurred out

Page 1 of 2 12 LastLast

Similar Threads

  1. A Glitch I Ran Into Today (Driving a Car from the Outside)
    By applejax87 in forum All Points Bulletin Reloaded Hacks
    Replies: 9
    Last Post: 12-10-2011, 03:25 AM
  2. How to get a mod from the SERVER?
    By liwei8257 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 11
    Last Post: 06-23-2011, 06:21 AM
  3. I get added from the most...
    By Skyline. in forum General
    Replies: 36
    Last Post: 06-12-2011, 07:25 AM
  4. list of the earnings you get from the badges
    By NoVaLiFe in forum CrossFire Discussions
    Replies: 20
    Last Post: 09-24-2010, 01:42 PM
  5. Replies: 12
    Last Post: 08-10-2009, 11:01 AM