C++ Builder code

This is a discussion on C++ Builder code within the C++ Programming forums, part of the General Programming Boards category; howdy, i'm trying to figure out how to write a win32 app in Borland C++ Builder. if anyone outr there ...

  1. #1
    In The Light
    Join Date
    Oct 2001
    Posts
    598

    C++ Builder code

    howdy,
    i'm trying to figure out how to write a win32 app in Borland C++ Builder.
    if anyone outr there is using C++ builder would you post a small piece of you code so i can see what it should looks like.


    M.R.
    I don't like you very much. Please post a lot less.
    Cheez
    *and then*
    No, I know you were joking. My point still stands.

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    Actually, you don't need to write any code.

    Simply click on new application and select run. Unfortunately, your application will do nothing other than display a blank window.

    To make it do something (i.e. display a message), drag a button (TButton) on to your form. Double click the button to create an OnClick event. Within the OnClick event function write:

    void TMainForm::OnButton1Click(TObject* Sender)
    {
    ShowMessage("Hello World");
    }

    Now select Run.

    The thing to remember is that your app is purely event driven. If you're used to having a main loop, you may things a little confusing at first, but will quickyly get used to it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 08:34 AM
  2. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 08:23 AM
  3. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 11:20 AM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21