Jump to content

357mag

Members
  • Content Count

    111
  • Joined

  • Last visited

Everything posted by 357mag

  1. I just discovered that C# does not have an input box. I was wondering if C++ Builder has one. And a message box.
  2. 357mag

    My program does not work

    Okay I figured I would try some Windows programming so I wanted to write a simple program that makes an array with 3 elements in it. It uses a for loop to populate the array with the values 0, 1, and 2. Then what I wanted to do was to click the button and you could see the numbers 0, 1, and 2 separated by a space. But it's not working as intended. It compiles fine. But when I run it and press the button nothing happens. There are no numbers that are seen in the Edit box. Beats me what is wrong. It's hard to be a beginner to GUI programming. Here is my code: void __fastcall TForm1::Button1Click(TObject *Sender) { int numbers[3]; int t; for(t = 0; t < 3; t++) numbers[t] = t; for(t = 0; t < 3; t++) Edit1 -> Text = numbers[t] + " "; }
  3. 357mag

    My program does not work

    I can't provide a screenshot at the moment. Today has been experimentation day. Working with a couple of different IDE's and I think I'm leaning in the direction of using Visual C#. If I do any more experimentation with Builder I will provide a screenshot.
  4. 357mag

    My program does not work

    My program works now but I get a long, red bar at the bottom of of the IDE. First it's blue and then it turns red. Thread Start Thread ID 7548 Process Project1.exe (13868) It's under the Event Log title. Don't know what that is all about.
  5. 357mag

    My program does not work

    I will add the IntToStr part though too.
  6. 357mag

    My program does not work

    This is all that was needed: for(t = 0; t < 3; t++) Edit1 -> Text = Edit1 -> Text + numbers[t] + " ";
  7. I've used C++ Builder to write many beginner type console programs and I've enjoyed it. I would now like to try making some simpler Windows GUI programs. But what I'm scared about is that I don't think there is that many people that actually use C++ Builder and thus there are not many forums that deal with helping people use the product. Not many books were ever written on it either. It seems like Microsoft dominates everything and my guess is that most people and companies use Visual Studio and not C++ Builder. My question is this. Is this the correct forum to help hobbyists like me (I'm mainly a guitar player who just programs as a hobby) write their programs? I'm kind of hesitant to start writing Windows programs using C++ Builder and then I can't figure out how to write a line of code and finding out there is no help on the Web either.
  8. 357mag

    Looking for a forum is this it?

    I've thought of learning Delphi too. I've got two books on it and there are more books available for it. Although I've always suspected not many people use it.
  9. 357mag

    Looking for a forum is this it?

    Okay Thank You for the replies. I think the only way I could ever write GUI programs using C++ is if I used C++ Builder. Every time I looked at Visual C++ code I was horrified at how different it looked and it also looked way too complex.
×