borland

How do I make a connection to an MS Access database using Codegear C++ builder (2007)

This seems to be the hardest thing to get help with - there are no books, no useful google results, and borland's own help facilities are far to complicated for me to isolate the answers I need. I want to make a connection to an already existing microsoft access database using builder. I want to be able add/delete/read the records. t...

How do I import an ActiveX control in BCB5 with tlibimp?

What are the required flags for tlibimp.exe to properly mimic choosing 'Component -> Import ActiveX Control -> Install' in the Borland C++ Builder 5 IDE? I currently pass tlibimp an ocx and -L-, but there is a loss in funcionality when compared with results of importing it manually. ...

Link reports to Java? or Find means to apply BOLD format within Paradox 4.5?

I need to read reports in Java from Paradox but I don't know how to do this. Can reports be imported through netbeans using a working driver? I have linked tables to Java but not the reports. I need to apply some Rich Text (ie. making a sentence BOLD - thus the need for the connection). Do you have any suggestions as to how I can pri...

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

BCB5 command line linker (ilink32) can't find consts.obj?

When compiling a makefile with the BCB5 commandline tools, the linker gives me this error: [exec] D:\PROGRA~1\Borland\CBUILD~1\Bin\..\BIN\ilink32 @MAKE0000.@@@ [exec] Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland [exec] Fatal: Unable to open file 'CONSTS.OBJ' [exec] ** error 2 ** deleting lib\paslib.lib I've checke...

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

[Borland C++ Builder 5] DynamicArray throws OutOfBounds exception

Hi all, I know this may sound strange, but yes, it's 2009 and I need to write small application using BCB5 :) The problem is that DynamicArray throws OutOfBound exception when trying to expand it from within worker thread. I have global variable, let's say DynamicArray<double> X; In main thread I check the length of array and I g...

Windows Subclassing in Borland C++ Builder

We're trying to convert a piece of C++ code written in MFC which uses the CWnd.SubclassWindow method, into Borland C++ Builder code. Does anyone know how to do subclassing (subclass with a TForm object) - we're completely stuck. Any pointers will be much appreciated! TIA! Specifics: We have an existing base class written in Borland C++...

C++ Builder runtime error - cannot focus a disabled or invisible window

On main form I have TPageControl and on all of it's tabs I have corresponding Save buttons which are activated on Alt+S combination. Of course, depending on which tab is opened at the moment, the handler for corresponding Save button should be called; but I get "cannot focus a disabled or invisible window" runtime error if I try to save ...

Why do I get an amibguity error when I compile from the command line, but not from the IDE?

I am trying to compile a rather large project with Borland C++ Builder 5.5. The project compiles in the IDE, but is much too slow. However, when I compile with the command line I get an ambiguity error that was not present in the IDE: Error E2015 Project.h 536: Ambiguity between 'TTreeNode' and 'Comctrls::TTreeNode' My command line a...

About the exit() function in C++

The getche() function doesn't terminate the program properly, so I want to try exit(int status) function. How does it work in Turbo C++ programming language? I cannot understand the explanation in related help modules and I seek for a better explanation... E.g. what does function's parameter consist of? Thanks in advance! ...

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

Using Borland C++ Code in VC++

Hi guys, Is there a way to access Borland output in VC++, for method calls and other stuff? Thanks ...

firebird weird problem connecting locally on just one machine

I've got a seemingly unique issue on just one computer in the company. (had to be my boss's) I've got a program from borland C++ that usese a TSQLConnection. It connects to a local firebird server 2.1.1.17910 running as an application. The other computers work fine. it will ABSOLUTELY NOT connect on this one lappy (local server) for ANY...

Trouble using .NET DLL in Borland C++ Builder 4

I have created a COM callable DLL in C# .NET 2.0 and created a TLB from the assembly using the .NET regasm tool. In Borland C++ Builder 4.0 I go to Project->Import Type Library-> and find my DLL's type library there and click "Ok" to import it. BCB creates an HardwareCheck_TLB.cpp & HardwareCheck_TLB.h file. In a cpp file of the ...

Are there any useful tools to anaylse an existing Borland Pascal 7.0 App

We have a body of legacy Apps written in Borland Pascal 7.0 of 16bit, real mode Fame. Do you know any good tools useful for analyzing such software, such as call graphs, cross-references, IDEs? ...

Weird linker error on Borland C++ Builder 6

I've been trying to compile a Borland C++ Builder 6 project, but linker dies with exact following error: [Linker Fatal Error] Fatal: Unable to open file '.OBJ' Strange thing about it is that it doesn't give any file name except the extension. It looks like an internal bug, though googling for it didn't give any results. Has anyone enc...

The future of C++ Builder

A few years ago C++ Builder from Borland with its excellent VCL gui library and its gui designer was the best IDE for C++ development on Windows. Once beloved, for a couple of years now Builder has been losing users steadily. What do you think are the biggest mistakes Borland/Inprise/CodeGear/Embarcadero has made? ...

Expose Borland C++ methods to C#

I have following method in my Borland C++ code, static bool UploadBitstream(void) { //Some code Implementation } And I'm trying to convert it to DLL and access it in C#. What are the steps I need to follow to Convert the code DLL and then use it in C# ?? ...