BCB uses a different language ?

This is a discussion on BCB uses a different language ? within the C++ Programming forums, part of the General Programming Boards category; Hi all~ I have Borland C++ Builder compiler. but what its inside is much different from that I learned from ...

  1. #1
    quiteblack
    Guest

    Question BCB uses a different language ?

    Hi all~
    I have Borland C++ Builder compiler. but what its inside is much different from that I learned from my book. for example, there is no [/b]main[/b] in BCB but a function named __fastCall, and the structure are not the same as my book's. I'm so confused now.

    any suggestions ???

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    no main() function? not even a winmain()? huh...

  3. #3
    flashing vampire black's Avatar
    Join Date
    May 2002
    Posts
    563

    Question

    Hi all~

    I'm new to C++. This thread is posted when I was a guest here.

    My question is what is __fastCall in BCB ? I found it nowhere througho my book. and could I replace it with a main{...} ?

    any reply will be helpful~
    Never end on learning~

  4. #4
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Black, if I may ask, where did you acquire your avatar? It looks remarkably similiar to the one used by an old acquiantance from i-sect. Are you, by any chance, fron New Zealand?

  5. #5
    flashing vampire black's Avatar
    Join Date
    May 2002
    Posts
    563

    Post

    Originally posted by Imperito
    Black, if I may ask, where did you acquire your avatar? It looks remarkably similiar to the one used by an old acquiantance from i-sect. Are you, by any chance, fron New Zealand?
    sorry, it looks I am not the right person for u.

    I always used this avatar in different forums. In fact, this is the first time I came here.

    And I wonder anyone could sovle my problem which listed in the top post.
    Never end on learning~

  6. #6
    Registered User
    Join Date
    May 2002
    Posts
    49

    Red face

    First of all: I'm a Chinese and My English is poor...sorry.

    It is windows instead of BCB who hide your "main". I think you must read something about Windows SDK.

    _fastcall is not an function, but calling convention of the function.
    Hello, everyone.

  7. #7
    flashing vampire black's Avatar
    Join Date
    May 2002
    Posts
    563

    Question

    Originally posted by Hotman_x
    First of all: I'm a Chinese and My English is poor...sorry.

    It is windows instead of BCB who hide your "main". I think you must read something about Windows SDK.

    _fastcall is not an function, but calling convention of the function.
    thanx, Hotman. I wonder which way is better to learn C++, cosole mode or graphic one ?
    what I learned from my books seemed all console based.
    Never end on learning~

  8. #8
    Registered User
    Join Date
    May 2002
    Posts
    49
    Console mode is quite easy. Begin with console mode is a right way for freshman in C++.
    Hello, everyone.

  9. #9
    flashing vampire black's Avatar
    Join Date
    May 2002
    Posts
    563
    Originally posted by Hotman_x
    Console mode is quite easy. Begin with console mode is a right way for freshman in C++.
    thanx.

    I could throw __fastCall away then, and make a new start with simply cin and cout, Cheers~

    Note: Hotman, notice your message box plz.
    Never end on learning~

  10. #10
    Unregistered
    Guest
    __fastcall is a calling convention, it instructs the compiler to pass the first two parameters (or so) in the CPU registers. BCB programs have a WinMain, try [Alt] + F12 and select the unit named like the project...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What language did they make Java in?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 07-03-2005, 05:18 PM
  2. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 02:11 PM
  4. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 02:20 AM
  5. Languages dying
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 31
    Last Post: 07-29-2003, 11:08 AM

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