Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
MovEax
Grandmaster Cheater Supreme
Reputation: 0

Joined: 14 Feb 2007
Posts: 1589

PostPosted: Wed Aug 13, 2008 7:17 pm    Post subject: C++ Reply with quote

How much of a difference if any is there between the Borland C++ compiler and the VS C++ compiler? I haven't programmed with C++ in like a year and i've only ever use VS to begin with. My current goal is to make some P2P games such as cribbage and chess because i think the MSN ones stink. Even if i fail completely at least i tried.
Back to top
View user's profile Send private message Send e-mail
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Aug 14, 2008 3:48 am    Post subject: Reply with quote

Borland has added various things more or less so for their own objects and such. However, if you look at more in-depth Borland C++ code, it looks a lot like C# (.NET). It adds onto the language itself by adding the OWL (Object Windows Library) and the Turbo Vision library.

Some example Borland C++ code:

(Taken from InvadersfromSpace.zip @ monroeccc.edu)
Code:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "highScoreU.h"
#include "InvFromSpaceU.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
ThighScoresFrm *highScoresFrm;
//---------------------------------------------------------------------------
__fastcall ThighScoresFrm::ThighScoresFrm(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall ThighScoresFrm::returnBtnClick(TObject *Sender)
{
  SpaceInvFrm->Visible = true;
  highScoresFrm->Close();
}
//---------------------------------------------------------------------------
void __fastcall ThighScoresFrm::FormShow(TObject *Sender)
{
  if (FileExists("ifsHighScores.hss"))
    hiSSaveRdt->Lines->LoadFromFile("ifsHighScores.hss");
  else
    hiSSaveRdt->Lines->SaveToFile("ifsHighScores.hss");
}
//---------------------------------------------------------------------------


You can achieve similar code in normal C++ using MFC, which basically like Borland C++, is just an additional object library and a set of classes more or less so for GUI development. (There are other parts to MFC and such though.)

As for differences between compilers, I would say Microsofts is more professional, more up to date with standards, and more to the point of what it is made for. As for Borlands, I have not used it myself, but I would assume it is either a homebrewed compiler, a ported version of another compiler, or something with just additions to compile in their object libs and such as well.

If you are asking which is better to choose from, I would suggest sticking to normal C/C++ and avoid anything with the name Borland in it.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites