Results 1 to 9 of 9
  1. #1
    NmDahmeT's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    1

    Angry C++ Textbox integer help

    What is the cause of the problem?

    Last edited by NmDahmeT; 06-07-2013 at 07:33 AM. Reason: C++ Textbox integer help

  2. #2
    Babart's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    185
    Reputation
    10
    Thanks
    1,163
    My Mood
    Cheerful
    try this :
    this->textBox1->text = *hack1.ToString();

    As your error said, you can't write a integer into a textBox, who need string.
    So you must convert it to string, with .ToString()

    If you want to convert a string into int, try .ToInt32()

    Hope it will help you.
    Sorry for my bad english
    Last edited by Babart; 06-07-2013 at 09:02 AM.

  3. #3
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    *hack is of type int and TextBox1->Text is System::String^.

    Code:
    *hack = int.Parse(textBox1.Text);

  4. #4
    NmDahmeT's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Void View Post
    *hack is of type int and TextBox1->Text is System::String^.

    Code:
    *hack = int.Parse(textBox1.Text);
    Code:
    int.Parse(textBox1->Text);
    int error = type name is not allowed

    Help ?

  5. #5
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by NmDahmeT View Post
    Code:
    int.Parse(textBox1->Text);
    int error = type name is not allowed

    Help ?
    Code:
    Int32.Parse(textBox1->Text);
    Int32::Parse Method (String)

  6. #6
    NmDahmeT's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    1
    Not Working :/

    Im write dll hack.(write memory)



    textBox1->Text is hack value.

    sorry my english is bad.

  7. #7
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by NmDahmeT View Post
    Not Working :/

    Im write dll hack.(write memory)



    textBox1->Text is hack value.

    sorry my english is bad.
    I understood that already.

    Code:
    *hack = Int32.Parse(textBox1->Text);
    This should work.

  8. #8
    FingerLickin'Good's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    JAville
    Posts
    11
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Void View Post
    I understood that already.

    Code:
    *hack = Int32.Parse(textBox1->Text);
    This should work.
    But Int32 is the name of the structure.
    (not sure if serious)

  9. #9
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    I think the main issue is that you are using Microsoft's managed C++.

    Why not create the hack in C++ and a frontend in C#?

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




Similar Threads

  1. [Help Request] Need help using Autosuggest in a textbox and pass the data to textboxes.
    By Joy4hacks in forum Visual Basic Programming
    Replies: 4
    Last Post: 02-21-2013, 08:13 PM
  2. [Help Request] i want to read a binary string from regedit loaded to a textbox in visualbasic, HELP?
    By hugio88 in forum Visual Basic Programming
    Replies: 7
    Last Post: 01-28-2013, 12:56 AM
  3. [Help] textbox help
    By pushdis15 in forum Visual Basic Programming
    Replies: 5
    Last Post: 05-31-2011, 05:59 AM
  4. HELP] How do i load mutliple dlls into textbox [HELP]
    By XGelite in forum Visual Basic Programming
    Replies: 30
    Last Post: 11-19-2009, 07:52 AM
  5. [Help] Textbox Reset Once a day
    By Zoom in forum C++/C Programming
    Replies: 3
    Last Post: 08-29-2009, 04:46 PM