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 ???

05-07-2002

ygfperson

no main() function? not even a winmain()? huh...

05-07-2002

black

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{...} ?
:rolleyes:
any reply will be helpful~

05-07-2002

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?

05-07-2002

black

Quote:

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. :rolleyes:

05-08-2002

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.

05-08-2002

black

Quote:

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.
:rolleyes:

05-08-2002

Hotman_x

Console mode is quite easy. Begin with console mode is a right way for freshman in C++.

05-08-2002

black

Quote:

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~ :D

Note: Hotman, notice your message box plz. ;)

07-13-2002

Unregistered

__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...