Jump to content

357mag

Members
  • Content Count

    66
  • Joined

  • Last visited

Everything posted by 357mag

  1. So I got rid of the Edit box and replaced it with a Memo box and now my program is printing on different lines. But it also says MemoResults in the box, so how do I get rid of that? I'm looking in Properties for a Text or Caption property and I don't see them.
  2. 357mag

    Quite confused about how to save a project

    Both my Project File and my Source code file have the .cpp extension. The Source Code file has the correct extension, but does my Project File have the wrong extension? What extension should the Project File have? Can I change the extension to whatever it's supposed to be? Actually I just started a new project and when I look at the file tree in the upper right, one file it made is called Project1.cpp.
  3. 357mag

    Quite confused about how to save a project

    C++ Builder builds your project faster than Visual C#. Maybe because C++ is a compiled language.
  4. 357mag

    Quite confused about how to save a project

    I have two GUI projects now in my folder but I noticed in my first project C++ Builder made the header file with a .cpp extension (Project Welcome Program .cpp). In the other project it gave the project file a .h extension (Project Simple Variable.h). Shouldn't these Project files be labeled the same?
  5. 357mag

    Quite confused about how to save a project

    Just to change the topic only for a second, I've noticed that C++ Builder is faster and more responsive than Microsoft's Visual C#.
  6. I just discovered that C# does not have an input box. I was wondering if C++ Builder has one. And a message box.
  7. 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] + " "; }
  8. 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.
  9. 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.
  10. 357mag

    My program does not work

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

    My program does not work

    This is all that was needed: for(t = 0; t < 3; t++) Edit1 -> Text = Edit1 -> Text + numbers[t] + " ";
  12. 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.
  13. 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.
  14. 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.
×