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. code: To display a message box with the word test on it. But in Borland C++ builder 6 you use this code: code: 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. RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by Ash_ on 12-23-2004 at 09:50 AM
quote: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. but see how it says "lpszCaption = NULL" and nType = MB_OK. well if you leave them out like code: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 RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by DJeX on 12-24-2004 at 04:17 AM
quote: 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: RE: Borland C++ Builder 6 vs. Microsoft Visual C++ 6 ?? by Millenium_edition on 12-27-2004 at 08:31 AM
quote: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: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 |