Questions tagged [c++builder]

Embarcadero C++Builder is a RAD C++ environment (compiler system & IDE) and component framework for Windows, OS X, iOS and Android.

C++Builder utilizes the Embarcadero RAD Studio IDE, along with Delphi. Many internal code and visual components use Delphi.

C++Builder was first released by Borland in 1997. The spin-off company CodeGear made several release from 2007-2008 (versions 2007, 2009). In 2008 CodeGear was purchased by Embarcadero Technologies, who continued development.

The current version C++Builder (10.3 Rio) released in November 2018 with support for Win32, Win64, OSX, iOS (32 and 64 bit) and Android.

  • The Windows, iOS-32 and Android compiler are based off of CLANG 3.3.
  • The iOS-64 compiler is based off of CLANG 3.5.
  • The OS X compiler is based on the proprietary Embarcadero compiler and is not C++11 compliant.

References:

2988 questions
16
votes
1 answer

How To Scroll a TStringGrid dynamically?

I am working in the Borland C++Builder IDE, using VCL controls. I am trying to get a TStringGrid component to scroll down to a row and highlight that row, based on user input in a different form. I have the highlight portion done, but I can't figure…
Ben313
  • 1,572
  • 3
  • 19
  • 30
16
votes
12 answers

Delphi versus C++ Builder - Which is Better Choice for a Java Programmer Doing Win32

I'm a pretty experienced Java programmer that's been doing quite a bit of Win32 stuff in the last couple of years. Mainly I've been using VB6, but I really need to move to something better. I've spent a month or so playing with Delphi 2009. I like…
MB.
  • 6,959
  • 6
  • 38
  • 42
16
votes
2 answers

Which Languages Does UTF-8 Not Support?

I'm working on internationalizing one of my programs for work. I'm trying to use foresight to avoid possible issues or redoing the process down the road. I see references for UTF-8, UTF-16 and UTF-32. My question is two parts: What languages does…
James Oravec
  • 16,761
  • 25
  • 77
  • 145
16
votes
1 answer

GDI handle leak using TGIFImage in a second thread

I have a background thread which loads images (either from disk or a server), with the goal of eventually passing them to the main thread to draw. When this second thread is loading GIF images using the VCL's TGIFImage class, this program sometimes…
David
  • 12,749
  • 6
  • 61
  • 126
15
votes
4 answers

How do I debug a difficult-to-reproduce crash with no useful call stack?

I am encountering an odd crash in our software and I'm having a lot of trouble debugging it, and so I am seeking SO's advice on how to tackle it. The crash is an access violation reading a NULL pointer: First chance exception at $00CF0041. …
David
  • 12,749
  • 6
  • 61
  • 126
15
votes
15 answers

C++ Builder or Visual Studio for native C++ development?

I've decided I want to get more into native code development with C++. I'm trying to decide if I would be better served using CodeGear C++ Builder 2009 or Visual Studio 2008. I currently use Delphi 2007, so I'm very comfortable with C++ Builder's…
Mick
  • 12,760
  • 9
  • 61
  • 118
15
votes
2 answers

TStringGrid - is there a simple way to get the "current/selected" row?

I can go the long way round, loop over each row, get a TRect from CellRect(col, row), then query its State for gdSelected ... But isn't there a quicker way to get the row number of the currently selected row, if any?
Mawg says reinstate Monica
  • 34,839
  • 92
  • 281
  • 509
14
votes
4 answers

Unhandled Exception in Rad Studio Debugger Thread

I have a large application that recently started exhibiting rather strange behavior when running in a debugger. First, the basics: OS: Windows 7 64-bit. Application: Multithreaded VCL app with many dlls, bpls, and other components. Compiler/IDE:…
alficles
  • 1,431
  • 1
  • 15
  • 22
14
votes
4 answers

Why does this calculation give different result in boost::thread and std::thread?

When this floating point calculation is executed in boost::thread, it gives different result than when executed in std::thread or in main thread. void print_number() { double a = 5.66; double b = 0.0000001; double c = 500.4444; …
vll
  • 7,507
  • 1
  • 23
  • 42
14
votes
3 answers

What is the benefit of larger pointers on 64-bit systems?

I am trying to understand 64-bit compiling, so I did a little test in C++ Builder: int i = 12345; ShowMessage(i); int *pi = &i; ShowMessage(sizeof(pi)); Largeint li = 9223372036854775807; ShowMessage(li); Largeint *pli = &li; …
İsmail Kocacan
  • 1,074
  • 8
  • 34
14
votes
9 answers

Change CheckBox state without calling OnClick Event

I'm wondering so when I change state of CheckBox CheckBox->Checked=false; It calls CheckBoxOnClick Event , how to avoid it ?
cnd
  • 29,085
  • 60
  • 169
  • 294
14
votes
3 answers

Adding additional library and include paths when compiling from command line

I'm trying to add additional paths to be used by my project group during compilation. Since C++ Builder 2010 uses msbuild I have tried looking at the documentation for that and according to what I can find AdditionalLibPaths should be passable as a…
inquam
  • 11,960
  • 14
  • 53
  • 95
14
votes
1 answer

Tag editor component for Delphi/C++Builder

I need a VCL tag editor component for Delphi or C++Builder, similar to what's available for JavaScript: e.g. this one, or this one or StackOverflow's own tags editor. Is there something like this available or do I need to make it from scratch? Some…
riot_starter
  • 788
  • 8
  • 23
13
votes
2 answers

Change keyboard shortcuts in RAD Studio 2010

I use C++ Builder 2010 and I could'nt figure out how to change keyboard shortcuts. From Tools > Options > Editor Options > Key Mappings, there are some key mapping modules, I use "IDE classic module", but I want to change some shortcuts in this…
13
votes
2 answers

Enable Safe Exception Handling in C++ Builder

For Windows 8 application certification, there are (among other) these requirements: 3.2 Your app must be compiled using the /SafeSEH flag to ensure safe exceptions handling 3.3 Your app must be compiled using the /NXCOMPAT flag to prevent data…
Martin Prikryl
  • 147,050
  • 42
  • 335
  • 704