c++builder

Expose an event handler to VBScript users of my COM object

Suppose I have a COM object which users can access via a call such as: Set s = CreateObject("Server") What I'd like to be able to do is allow the user to specify an event handler for the object, like so: Function ServerEvent MsgBox "Event handled" End Function s.OnDoSomething = ServerEvent Is this possible and, if so, how do ...

Borland C++ Builder 6 compiler problem

Why BCB 6 always compile all files. I make come changes on one file but BCB 6 compile all files when i start app. Any idea? I use WinXP SP2. ...

FindNextFile fails on 64-bit Windows?

Hello, using C++Builder 2007, the FindFirstFile and FindNextFile functions doesn't seem to be able to find some files on 64-bit versions of Vista and XP. My test application is 32-bit. If I use them to iterate through the folder C:\Windows\System32\Drivers they only find a handful of files although there are 185 when I issue a dir comm...

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...

C++ (Builder) How to populate a database with filenames from a dir and its subdirs.

I have an application which behaves as a slideshow for all pictures in a folder. It is written in Borland's C++ Builder (9). It currently uses some borrowed code to throw the filenames into a listbox and save the listbox items as a text file. I want to update this so that the filenames are stored in a proper database so that I can incl...

How do I merge TMainMenu's that use separate imagelists and retain the correct images by each menu item?

I have a program with two TForm classes and have added a TMainMenu to them each. I am then trying to merge them dynamically at run-time. My problem is that when they merge the menu items in the merged in TMainMenu now display images stored in the imagelist in the form they were merged into rather than the images stored in their original...

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...

How can I "unuse" a namespace?

One of the vagaries of my development system (Codegear C++Builder) is that some of the auto-generated headers insist on having... using namespace xyzzy ...statements in them, which impact on my code when I least want or expect it. Is there a way I can somehow cancel/override a previous "using" statement to avoid this. Maybe... unu...

TCustomDataSet C++ Builder

I'm looking for an example of a TCustomDataSet implementation in C++ beyond the TTextDataset example that ships as an example project within C++ Builder. The TTextDataset is hard to learn from because the code is not documented very well and it only shows a single field example. I've created my own class that descends TDataSet and it m...

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 the VCL GUI stuff, Delphi seems more suited to Windows API calls than VB6, I really like...

Start program on a second monitor?

Is there a way to specify which monitor a application appears on in Delphi or C++Builder? I am developing a simple program for a customer, which displays kitchen orders on a secondary monitor, generated by a hospitality system. Currently they need to manually drag the window onto the second monitor after it starts. ...

How do I get shortcuts to work with multiple TActionMainMenuBar objects in a single form?

I have an application with a main form. In this form I have placed three TActionMainMenuBars, because the application essentially runs in three different modes. The menu bars are all constructed from actions stored(proxied) in an TActionManager on the main form. The ActionManager actually references actionlists on various other forms. ...

How can I switch on Intellisense and code hints in C++ Builder 2009?

I've just installed CodeGear Studio 2009 and I didn`t find where I can put the Intellisense and code hints on. And, by the way, in Visual Studio we can indent selected blocks of code in the same way. How can I use similar functions in CodeGear? Any ideas about that? ...

How can I correctly downcast the pointer from void* to TMemo* in C++Builder2009?

Hello, I am writing multi-thread socket chat in C++Builder 2009. It is almost complete in accordance with what I need to do but I have a little problem. I need to pass the TMemo* pointer into CreateThread WinAPI function which upcasts it to void*. I tryed this way: HANDLE xxx = MemoChat->Handle; hNetThread = CreateThread(NULL, 0, NetTh...

Open a Specified File in Excel from a GUI - Borland C++

I am using Borland Builder C++ 2009. I want to add a button to a form that allows the user to open a file in Excel that I specify. I can't think of how to do this. I know how to link with other code and executables -- is there a Microsoft Excel executable that I could use? How could I specify the file then? Any hints on this, or at least...

MSB4057 Error when using MSBuild with RAD Studio 2009

Summary: I'm able to compile a RAD Studio 2009 project using MSBuild on a Build Server using the RAD Studio Command Prompt, but not with a batch file. This same batch file, however, works successfully on my workstation. On the server the error returned is: MSB4057. I'm just learning how to use MSBuild with RAD Studio and am trying to...

Can I use Delphi or C++Builder for Windows Mobile 6.1 Development?

I'm curious about what it takes to program for mobile devices (Windows Mobile 6.1) and if I can use the IDE's we're already used to (RAD Studio 2009). Is there a Mobile Development Community around where Delphi or C++Builder users can learn from? Are there differences in development techniques, like: Drivers, Memory Limits, Device ...

new TXMLDocument in Borland C++ Builder

Is it possible for me to create and destroy a TXMLDocument by myself in Borland C++ Builder? I've tried but borland keeps telling me that TXMLDocument is (and must be) an IDE managed component... Also, the only reason that I want to do this is that TXMLDocument sort of crashes: I get the TXMLDocument and 'Gets' a workbook from it, sets s...

What should I do in order to succesfully link a C++ Builder 6 project in C++ Builder 2009 without unresolved external references to CodeGuard things?

Here's what I did: I've opened a C++ Builder 6 - project in C++ Builder 2009. Auto-converted it to a C++ Builder 2009 project. Told it (C++ Builder 2009) to build everything. Here's what it did: Successfully compiled everything. Failed to complete ILINK32, exiting with "Error: Unresolved external '_CG_DESC' referenced from MyProj...

64-bit Support in C++ Builder

I'm looking at upgrading the Borland/Codegear/Embarcadero C++ builder suite we use for some of our code. I would like to see 64-bit support but that doesn't seem to be a feature in the 2009 edition. I swear I saw a roadmap suggesting that there would be a new release in mid-2009 which would include x64, but now that document is lost to...