Shoutbox

Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? (/showthread.php?tid=35886)

Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by DJeX on 12-21-2004 at 10:53 PM

This is kind of a continuation of my last post about an easier program to code C++ in.

Some one suggested in a reply to try Borland C++ Builder 6. So I bought it after researching more on it.

It turns out that it has all the features I wanted and more. I really want to use this program to learn C++ and code my programs. But then I come to this question. Which program will compile better code?

Like for instance in MS Visual C++ 6 you use the code:

code:
MessageBox("Test")

To display a message box with the word test on it.


But in Borland C++ builder 6 you use this code:

code:
Application->MessageBox("Testing", "Test", MB_OK);


Does MS Visual C++ 6 just substitute the "Application->" and ", "Test", MB_OK" parts for you when you compile the program or that just extra crap Borland adds?


Any suggestions will be greatly appreciated.
RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by RaceProUK on 12-22-2004 at 10:13 PM

MessageBox() is part of the Win32 API. If you include 'windows.h', then you just use MessageBox(<hwnd>, <prompt>, <title>, <style>) IIRC.
I guess you could also use MessageBox(<prompt>); never tried that myself.


RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by Ash_ on 12-23-2004 at 09:50 AM

quote:
Originally posted by DJeX
Does MS Visual C++ 6 just substitute the "Application->" and ", "Test", MB_OK" parts for you when you compile the program or that just extra crap Borland adds?

well i reckon VC just auto puts that in to make it more Dev friendly.

if you put the MessageBox call on a button click in a MFC project. a little box thing comes up to tell you what you need.

[Image: attachment.php?pid=350755]

but see how it says "lpszCaption = NULL" and nType = MB_OK.
well if you leave them out like
code:
MessageBox("im awesome");
then the caption will be auto set to null and the box will only have 1 "Ok" button.

but

if you do it the API way to create windows. usign CreateWindowEx and registering classes and stuff. you'll need to put in all 4 arguments (the handle (0 for desktop), " the caption as a char", "title as char",  Button Type (MB_OK or more in API viewer));

hope that makes sense (Y) :P
RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by DJeX on 12-24-2004 at 04:17 AM

quote:
Originaly Posted by: Ash
[Image: attachment.php?pid=350755]

That's differnet in Borland C++ Builder.
RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by Ash_ on 12-24-2004 at 02:41 PM

really? just out of interest can you please put up a little screenie of what it comes up like?


RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by DJeX on 12-27-2004 at 01:57 AM

Here is what comes up in Borland C++ BUilder 6:

[Image: attachment.php?pid=351730]


RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by Millenium_edition on 12-27-2004 at 08:31 AM

quote:
Originally posted by DJeX
Here is what comes up in Borland C++ BUilder 6:

[Image: attachment.php?pid=351730]
That's exactly the same ¬¬ well apart from the argument names, but that's because in vc++ it's the win32 api call, and in borland it's just a replacement for it.

there is no better compile. the possibilites are defined by the language, not by the compiler.
RE: RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by Ash_ on 12-27-2004 at 09:01 AM

quote:
Originally posted by Millenium_edition


there is no better compile.

bah. if were talking about Borland and MS VC, then maybe.
but if its all compilers in general, im not a big fan of the old Dev-C++. cant get it to compile at the same size VC does. only way i might be able to  is a custom makeit.bat. but ill stick with VC :P