c++builder

RAD Studio 2011 ( ? )

Hi to all, is there any information available for the next version ( 2011 ?? ) of Delphi/cbuilder from Embarcadero ?. Is there some link somewhere pointing to info related to next Delphi / cbuilder , when and what it might be in ? Anything? Thanks a lot. Sebastian. ...

BDS2006 and Zeos installation

Hi all, I recently installed Zeos 6.6 stable on BDS2006 for both the Delphi and C++ personalities. In order to do so, and since Zeos is written in Delphi, I checked the "Generate all C++ Builder files" when building the packages. The problem I found was that, somehow, not all necessary .DCUs were generated during the building of the...

Why can't C++ Builder find my headers?

I am required to recompile a C++ builder project, and am come across this problem. one of the unit contains the followings: #include "LMDBaseControl.hpp" #include "LMDBaseGraphicControl.hpp" #include "LMDBaseLabel.hpp" #include "LMDBaseMeter.hpp" #include "LMDControl.hpp" : When I compiled this unit, I got the followi...

Borland C++ Builder compile error

I am using Borland C++ Builder 6, on an XP PC. When I compiled a software unit that made reference to crtdbg file, I received the following error messages: /* Borland version of Microsoft CRTDBG.H header file This is used by MFC and ATL. */ /* * C/C++ Run Time Library - Version 11.0 * * Copyright (c) 1999, 2002 by Borl...

VCL multiple inheritance

Hi, I'm trying to develop a set of controls which all have a number of common behaviours with respect to sizing. I think that this is an instance where multiple inheritance is required (although am fully willing to accept any advice to the contrary). What I would like to do is basically a mixin pattern class Sizable { ......

c++ language related to funtions

If void main is a user efined function then can we make any change in this user dfeined function.for eg: can we write/use void main1() in place of main()???? ...

How can I troubleshoot design-time packages in Delphi/C++Builder?

I have consistently had IDE problems in Delphi/C++Builder for years, with every version. I usually just reboot, recompile, etc. and move on. However, I keep seeing others say that the IDE is rock solid. I've read many people say that most IDE problems are a result of custom component problems. We have several of our own custom compon...

Random Delay When Printing to Dymo LabelWriter Turbo Via ShellExecute() [Solved]

I have an external program which takes in a few arguments (PrintLabel) which is called from my application using ShellExecute. PrintLabel is shown below. Sometimes it can take upwards to 15 to 20 seconds to print a label. It seems to get worse over time. If the PC is rebooted, then the printing speeds up again but it gets slower over tim...

How can I add libCurl to a Borland C++ Builder 6 Project?

How can I add libCurl to a Borland C++ Builder 6 Project? I tried including its directory in the project's compiler and linker search paths, then I made a lib from the libcurl dll and I added it to the project, I'm trying to get a piece of sample code to compile, but it throws on error that it doesn't find curl/curl.h in the line #includ...

Crazy Access Violation in C++ Builder 6

I have the following code, and for the life of me, I cannot understand why there would be an Access Violation exception? I even deleted all the OBJs, TDS etc files and put it into a new project, still the Access Violation occurs. Essentially, this code displays a TListView in a TFrame and is to show the various current times around the ...

Force C++Builder to close a database session even if aborted

Form1 connects to a database and keeps the connection in a published property Form1->DBSession. In the project source I would like to make sure that this session is closed, even if the program is aborted throwing an exception (in a library). My code includes the form using USEFORM("fForm1.cpp", Form1); When writing this code in Win...

Install a .bpk into Borland C++ Builder from the command line

I am attempting to install a .bpk package into the Borland C++ Builder 5 IDE from the command line. I am sure that this is possible, as we have some third party components that manage to do so, but I have not been able to figure out the required steps. Any pointers are appreciated! ...

Program cannot reconnect to Firebird after abnormal termination

What can be done to prevent having to restart a PC after a program (C++Builder) terminated abnormaly without closing the database using firebird 2? What I am looking for: I would like to be able to just restart the program without any other intervention. (I could have the user call a batch file executing some cleanup or add some lines o...

Reading unicode string from registry

I'm using codegear c++ builder 2007. I'm trying to read a string value with a path from the registry. This path can contain unicode characters, for example russian. I have added a string value with regedit and verified by exporting that the value really contains the expected unicode characters. The result in S1, S2 and S3 below all cont...

Time spent on reading from file

I am doing this in C++: if (myfile.is_open()){ while (! myfile.eof()){ getline (myfile,line); DO STUFF } myfile.close(); } else{ cout << "Unable to open file"; } I am trying to read the lines from a text file and do stuff with it. I am trying to see what the run t...

stl hash_map slower than simple hash function?

Hi, I was comparing a simple hash function that I wrote which just multiplies it by a prime mod another prime number (the table size) and it turns out that stl is slower by 100 times. This is the test method that I wrote: stdext:: hash_map<string, int> hashDict; for (int l = 0; l < size; ++l){ hashDict[arr[l]] = l; } long int before...

Grouping Controls

I'm using C++ Builder 5. Is there a way to group a disparate set of controls so that by simply calling, for instance, myGroup.Enabled = false; will set all group of controls enabled property to false? I can't use a GroupBox since the controls (labels, checkboxes, etc) are on different TabPages. The reason I ask is so I don't have to cal...

Dynamic Allocation of buttons in C Builder 6?

Hi, I want to make a game of TicTacToe. WhenI resize the window I want to appear more buttons on the interface. From a matrix of 3x3 to 4x4 etc up to 9x9, depending on how much I resize the window. How do I do this? I will make a free web site design to whoever provides me with a working answer (and something extra for the full program...

Delphi C++Builder to VisualStudio

Can we 'easily' (in some way) compile C++Builder project into VisualStudio 2005 C++. New in C++ i'm looking for references in that matter (CBuilder vs VS). Thanks. ...

Seeking floorplan design VCL toolbar

I'm looking for a VCL component for C++ builder. It should preferably have a toolbar with drag & drop functionality. I want to define a building or area (which might not be rectangular) and split it into "rooms" (or areas, or whatever you want to call them). And I want to be able to put "doorways" (or passages, etc) from a room into its...