Jump to content

357mag

Members
  • Content Count

    66
  • Joined

  • Last visited

Community Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 357mag

    Why Should a C-Sharper Learn Delphi?

    I would say that just because the same man wrote both languages does not make them similar. Delphi is definitely different than C#. C# is easier to grasp than Delphi is.
  2. I thought in Delphi there was end; with a semicolon And end. with a period But I have seen a third end That one has nothing after the keyword What's going on?
  3. 357mag

    Have any of you worked with Visual C++?

    I like console programming. But I also like beginning Windows programming which is what I have already started using C# and C++ Builder. One of the more adventourous programs I would like to build is a 10 question music test or a 10 question psychology test. I want it to ask a question and then the user will give his answer to the question and then hit the Next button and the next question appears. It will be multiple choice so I will be using radio buttons I imagine. I'm wondering if I would need to use 10 different forms to represent the 10 questions, or is there a way to to continue to use just one form for all 10 questions. I like bouncing around too between languages. Microsoft Visual C++ when I found out what it was like turned me off, but I have often looked into it again but each time I say No Thanks. Curiosity.
  4. 357mag

    Have any of you worked with Visual C++?

    The Visual in Visual Basic or Visual C++ or Visual C# simply means you can make a Graphical Interface with it. You're working in a visual manner instead of in a console manner (although you can do that too).
  5. 357mag

    Have any of you worked with Visual C++?

    No Visual C++ as it comes in Visual Studio and when it was available as a separate product in a box called Visual C++ 6. It was MFC which looked very difficult to monkey with or learn. Now we have WPF and WinForms so maybe it's not so bad. But I don't think Microsoft really wants programmers to use it. They are pushing Visual C#.
  6. I remember back around 1997 or so when I was working with Microsoft Visual Basic 6 I wanted to try their other product, Visual C++ 6. But when I looked at some of the code it looked like a scary nightmare. I guess I was expecting it to look kinda like standard C++ but it looked way different with all kinds of different terminology and it was way over my head. Right around the same time I found out about this product called Borland C++ 4 Standard so I bought that and just made console programs with it. I'd like to ask you guys if you have worked with Microsoft's Visual C++. Did you like it or hate it?
  7. In order not to piss anyone off on the forum, I will change my code to the C++ Builder string type.
  8. 357mag

    Need a little help with my Welcome Program

    I got it going! This works: #include <vcl.h> #pragma hdrstop #include "welcome_program.h" #include <iostream> //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TFormWelcome *FormWelcome; //--------------------------------------------------------------------------- __fastcall TFormWelcome::TFormWelcome(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TFormWelcome::ButtonShowMessageClick(TObject *Sender) { AnsiString firstName = EditFirstName->Text; LabelMessage->Caption = "Welcome to C++ Programming " + firstName + "!"; }
  9. I've got a program where the user enters his first name in an Edit box. Then he presses the button entitled Show Message and I will show him a Welcome Message. I'm having some trouble with coding the first name. Builder says Could not find a match for string::basic(const string&). Here is what I have so far: #include <vcl.h> #pragma hdrstop #include "welcome_program.h" #include <iostream> #include <string> using namespace std; //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TFormWelcome *FormWelcome; //--------------------------------------------------------------------------- __fastcall TFormWelcome::TFormWelcome(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TFormWelcome::ButtonShowMessageClick(TObject *Sender) { string firstName = AnsiString(EditFirstName->Text); }
  10. I added Ansistring(sum) and it worked.
  11. Well I think I got part of it going. y = Edit2->Text.ToInt(); I think that is okay, but the answer in the Label just says "is". I think I got the same problem going on. Pointer arithmetic or something. I'll have to mess with it.
  12. I need to convert a number (which I think defaults to a string) to an integer in C++ Builder: void __fastcall TForm1::Button1Click(TObject *Sender) { int x; int y; int sum; x = std::stoi (Edit1->Text); y = Edit2->Text; sum = x = y; Label3->Caption = "The sum is" + sum;
  13. 357mag

    I would like blue not black

    It works! Thank You So Much.
  14. 357mag

    I would like blue not black

    I've got a simple Welcome Message program and when I click the Show Message button it prints a "Welcome to C++ Builder!" message in a label. Only thing that's not going quite right is I would like the text of the message to print in blue, not black. I've got the label selected and I'm going into the color property and choosing clNavy. But when I run the program the Welcome message still prints in black.
  15. 357mag

    Question about formatting

    I've wondered if I should do this: EditPrompt->Text or this by adding some whitespace: EditPrompt -> Text How do you guys do it or is there a convention?
×