codegear

What is needed to get Delphi back on top?

Delphi 2011 is on the horizon, which is the 14th release since Turbo Pascal became Delphi in 1995. Despite continued innovation it has not returned to its level of popularity before the Inprise fiasco. Many developers with Delphi backgrounds are moving to C# and many Delphi legacy applications are being rewritten in C#, despite the f...

Codegear RAD Studio help system is corrupted

I've been using Codegear RAD Studio for a over a year now but since the "May08 Help Update" the help system no longer works. If I open the help the contents pane is entirely blank. If I hit F1 I get the following error: "Unable to interpret the specified HxC file." I've searched for the answer using search engines and the Codegear ...

What is the comparative robustness of C++ Builder versions?

Our development team work with Borland C++ Builder 6 and CodeGear C++ Builder 2007 (as well as Visual Studio). I hear a lot of comments that the Builder 2007 IDE crashes a lot more than BCB6 does. Does anyone out there have any experience of the C++ Builder 2009 IDE yet, particularly with a decent size application, and if so how does thi...

Can Delphi 2009 be installed on the same machine as Delphi 2006 or Delphi 2007?

Is there any conflict? ...

Are there guidelines for updating C++Builder applications for C++Builder 2009?

I have a range of Win32 VCL applications developed with C++Builder from BCB5 onwards, and want to port them to ECB2009 or whatever it's now called. Some of my applications use the old TNT/TMS unicode components, so I have a good mix of AnsiStrings and WideStrings throughout the code. The new version introduces UnicodeString, and a bunch...

CodeGear Delphi 2007 VI/VIM Key Mapping

After reading The Pragmatic Programmer, I became quite accustomed to VIM. When in Visual Studio I have ViEmu (http://www.viemu.com/) to provide me with VIM functionality. Is anyone aware of a similar program/key binding/workaround to integrate VI/VIM key bindings in CodeGear Delphi 2007? ...

Is there any way to restrict how many item returned by CodeCentral Web Service

I am building web client for CodeCentral web service from CodeGear web site. I need to restrict number of items return by Search operation of CodeGear web service, say it, 10 per page. This way I can minimize loading of my web page. I just don't know how to do it. Any ideas? ...

Why Weren't You at CodeRage III?

Delphi is currently ranked as the 10th most popular language (Dec 2008) and has approximately 1.75 million users worldwide. So why were there so few people at the CodeRage III virtual conference put on last week by Embardero? I really enjoyed the sessions I was at, but many were attended by fewer than 100 people. Even Marco Cantu's tal...

get path and filename of all files in a given dir and its subdirs using c++ (builder)

I was given this code a while back. I finally got around to testing it (with some changes to put the files in a different place)... void AddFiles(AnsiString path/*, TDataSet *DataSet*/) { TSearchRec sr; int f; f = FindFirst(path+"\\*.*", faAnyFile, sr); while( !f ) { if(sr.Attr & faDirectory) { if(sr.Name !...

Why is the destructor ignored in this C++ code? (Turbo C++ Explorer, Borland C++ Builder 2006)

The following code demonstrates a weird problem I have in a Turbo C++ Explorer project. One of the three stack objects in D::D() is not destroyed after going out of scope. This only happens if compiled in release mode, the auto_ptrs a_ and b_ are of different types and the exception thrown doesn't inherit from std::exception. It appear...

NUnit crashes when cc3270mt.dll is loaded

I have a problem where NUnit Assert.IsTrue crashes with an "access denied" (0xc0000005) access violation. Since managed applications are not supposed to cause such errors, I started looking at any unmanaged code loaded by the NUnit tests. And sure enough, after a process of elimination the simplest way to reproduce the problem turned out...

How to write files with (readable) UTF8 characters in C?

I read a file that has utf8 characters like this: FILE *FileIN,*FileOUT; FileIN=fopen("filename","r"); char string[600]; WideChar C[600],S[100]; fgets(string,600,FileIN); wcscpy(C,UTF8Decode(string).c_bstr()); // widechar copy And it reads it perfectly (this is shown in the Editbox when running the program): Edit1->Text=C; Result ==...

how to open bpr projects in Borland Codegear C++ Buider 2009 ?

I'm trying to import the log4cpp project into Borland Codegear C++ Builder 2009 . The rar file of the project contains a bpr file which corresponds to a project. When trying to open it, an error popup window is shown, saying: OLE error 80131040, ClassID: {F8FEDD39-E3CE-4B8D-A657-9CA24686881F} I do not have idea of what's going on, an...

log4cpp in borland codegear 2007

I'm trying to make work the library and run the tests provided with the latest version of log4cpp on Borland Codegear 2007, in which it's included a bpr project for Borland C++ Builder 5, which it's meant to be able to build and run the different tests. The problem is that i'm trying to open this project with the 2007 version, which has ...

Default File Layout in Codegear C++ Builder (and Delphi)

I've had a major annoyance with the Borland/Codegear C++ Builder IDE for some time now. When I code I always use a standard layout for the code files. I have a standard header that I use, including, ie. the Licens of the file, filename, date, etc. But I haven't been able to find anywhere to insert this, so that when I - for instance - c...

What happened to CodeGear's TBitBtn and TButton inheritence chain?

I've recently began to upgrade my RAD Studio 2007 project to RAD Studio 2009. One thing I noticed is when seemingly simple code all of a sudden failed to compile. Example Code: class CButtonPopupMenu { // Snip public: void Init( TButton* SrcButton ) { SrcButton->OnClick = OnButtonClick; } private: void __...

#region equivalent in CodeGear RAD Studio? Similar way to group code?

I was wondering if there is an equivalent to Visual Studio's #regions in RAD Studio. We use CodeGear's delphi and c++builder IDEs where I work and I would love to be able to use something like regions. My coworkers and I have yet to find an equivalent way of grouping code... do you know of any? Thanks! ...

Why is CodeGear C++Builder failing to create pre-compiled headers?

Problem In CodeGear C++Builder 2009 we are using the pre-compiled header injection to greatly reduce our compile times. We have the same header file being injected into multiple projects. When compiling some projects, the compiler kicks out the following warning: [BCC32 Warning] Dateutils.hpp(43): W8058 Cannot create pre-compiled head...

Codegear RAD Studio C++ Go to Definition - Control Click

I am using CodeGear RAD Studio C++, I know that to go to a definition of a variable or class you must press control and click on the method name, or any identifier where you want to go to a definition. However, as most of you would notice this does not work all the time. Does anyone have any trick on doing this? ...

Other way to create transaction than TBXTransaction::BeginTransaction()

I am having a problem with my code. I get an intermittent error that the capacity/limit for the transaction is already reached. However, I already checked the BeginTransaction and CommitFreeAndNil call with my code and it does delete all transaction. I also checked my whole code and there are no other instance of the BeginTransaction. ...