Borland C++ Builder is kinda like MSVC++ using MFC, so it's code is only usable to compilers that have access to it's Visual Component Library. (VCL) Borland Delphi (which uses Object Pascal) has the same basic VCL, but I don't know if it has a C++ compiler. (BCB can compile Object Pascal code though, since that's what most of the VCL is made in.) Here's an example of the code used to add an exe to the exe list:
//---------------------------------------------------------------------------
void __fastcall TMain::AddEXEClick(TObject *Sender)
{
OpenDialog->FileName = "";
if (OpenDialog->Execute())
if(OpenDialog->FileName != "")
{
ExeSelect->Tag = ExeSelect->ItemIndex;
ExeSelect->Items->Add(OpenDialog->FileName);
}
}
//---------------------------------------------------------------------------
The function itself (and it's header file entry) were actually created by BCB when I select the Add button, change Object Inspector to the events tab, and double click the drop down combo box for the "click" event. The code in the function I did. OpenDialog is a TOpenDialog object that provides an interface to the Open File common dialog and ExeSelect is the drop down list box that the exe filenames (with path) are stored in. BCB's nice for quickly making programs, but it alone doesn't provide a lot of the things people like to put in programs these days. (Like system tray icons.) There are components written by other people that you can add (as well as Active X controls) to do some things, but not all of them are free and finding ones for BCB1 can be hard these days.
In short: BCB1 can be a real pain in the butt to program with when trying to get it to do something, but is easy to use when building the UI. (Assuming it's a standard Windows program.) It's designed for RAD (Rapid Application Development) and not much else.
