What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??

Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. Roll Eyes  Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
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.
[Image: top.gif]
12-21-2004 10:53 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
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.
[Image: spartaafk.png]
12-22-2004 10:13 PM
Profile PM Web Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
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

.jpg File Attachment: Temp.JPG (8.69 KB)
This file has been downloaded 364 time(s).

This post was edited on 12-23-2004 at 09:52 AM by Ash_.
[Image: jeansiger5.jpg]
12-23-2004 09:50 AM
Profile PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
quote:
Originaly Posted by: Ash
[Image: attachment.php?pid=350755]

That's differnet in Borland C++ Builder.
[Image: top.gif]
12-24-2004 04:17 AM
Profile PM Web Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
really? just out of interest can you please put up a little screenie of what it comes up like?
[Image: jeansiger5.jpg]
12-24-2004 02:41 PM
Profile PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
Here is what comes up in Borland C++ BUilder 6:

[Image: attachment.php?pid=351730]

.jpg File Attachment: borlandss.JPG (9.29 KB)
This file has been downloaded 296 time(s).

This post was edited on 12-27-2004 at 01:58 AM by DJeX.
[Image: top.gif]
12-27-2004 01:57 AM
Profile PM Web Find Quote Report
Millenium_edition
Veteran Member
*****

Avatar

Posts: 1787
Reputation: 57
Joined: Apr 2003
RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
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.
12-27-2004 08:31 AM
Profile E-Mail PM Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ??
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
[Image: jeansiger5.jpg]
12-27-2004 09:01 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On