borland

ActiveX code from Visual C++ port to Borland C++ Builder

I have the following code example for Visual C++ which creates an ActiveX object which can then be used. // create a smart pointer for ActiveDSO _DActiveDSOPtr activeDSO; HRESULT hr = activeDSO.GetActiveObject(__uuidof(ActiveDSO)); if (FAILED(hr)) { hr = activeDSO.CreateInstance(__uuidof(ActiveDSO)); if...

Borland linker error

Hello, I am recompling a project using Borland C++ Builder 6 and LMD tool 2010. The recompile process failed due to linker error. The message was: "[Linker Fatal error] Fatal unable to open file LMDOneInstance.OBJ" I searched the whole hard drive, but could not find any reference to LMDOneInstance.OBJ Any help is appreciated. Thanks i...

CMake not using appropriate output command line argument for compiler.

Hello, I'm working with CMake, and my program compiles fine with g++. However, I also wish to compiled it with bcc32 and cl. I am running into an issue -- I'm telling cmake to use those compilers by doing a command line somewhat like "cmake -DCMAKE_CXX_COMPILER=cl" or whatnot, and it picks up the compiler correctly (ie, in that case, t...

Background changes by itself and procedure repeats many times until I release the mouse button

I am a student, and I'm working on a little slots game (if the same random number comes up 3 timed, you win). I use Borland Pascal 7. I use graph to make this a bit more visual, but when I start the game my background turns from black to grey, and the other problem is that if I click the game start button, the game runs many times until ...

How can I check if the mouse button is released, and THEN execute a procedure once in Borland Pascal 7.0?

Hi! I use Borland Pascal 7.0, and I would like to make a slots game (If 3 random numbers are the same, you win). The problem is that when I click on the start (Inditas) button on the menu, the procedure executes many times until I release the mouse button. I was told that I should check if the mouse button is released before executing th...

How to enable BDS2006's C++ WARN & TRACE macros.

I am trying to find out how to enable (& use) Borland's WARN & TRACE macros. My starting point was this link: http://bcbjournal.org/articles/vol2/9809/Debugging_with_diagnostic_macros.htm?PHPSESSID=37bf58851bfeb5c199d1af31d7b2e7ff However, that appears to be for BCB5, and not the 2006 Borland Developer Studio. I've set the two define...

How to make a cell of TAdvStringGrid editable?

I am trying to implement a filter using the component TAdvStringGrid. My requirement is that I want the first row of this component to be editable when double clicked, so that the user can filter data. Borland C++ Builder is used to help achieve this task. I found this event OnCanEditCell. TCanEditCellEvent = procedure (Sender:TObject;...

Borland Starteam incorrect files status

I have some project saved in starteam. As there are a lot of obsolete files I can't check in or check out all project, only changed files. Now I copy project from one computer to another for other developer. I expect starteam treats copied project as new item for check in and check out, but it don't. Forexample: I modified file on ...

How do I create "undo" in c++?

I've got a couple of codes to do some things but I need to create a function that undoes the previous task/addition/change.How do I do this in Borland C++? (the program stores strings of text in a text file using "list",it is stored and then erased unless I use the save-function I've created) right,so I don't know if I've forgotten to ...

Unwanted debug session

Try this code I created,when I use it in Borland C++ and try the remove-function a debug session opens up and it points to a file called "xstring",and it is saying "EAccessViolation". it points to this line in the file: return (compare(0, _Mysize, _Right._Myptr(), _Right.size())); //-----------------------------------------------...

Is Borland C++ v3 for DOS available anywhere now?

Hi, I'm looking for a copy of either Borland C++ v3 or Turbo C++ which can run on DOS, but my searches are turning up a blank. I vaguely remember a free Turbo version available, but can't track it down. Are there free/pay versions of these still available? Is http://www.embarcadero.com my best hope? Thanks for any info... ...

How To Scroll a TStringGrid dynamically?

Hello, 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 out how to scroll the grid down to the correct row. Anyone here know? ...

How to explicitly release GDI handles allocated by TForm derived class owned by the Application?

Hi. A single class derived from TForm appears to hold onto GDI handles until the application is closed. class TTestForm : public TForm { public: TTestForm(TComponent*); }; std::auto_ptr<TTestForm> test(new TTestForm(NULL)); test->ShowModal(); I'm quite new to VCL, so please bear with me. This test was done with a form that con...

Error with bc++ and glut

hey guys This code compiles fine in Vc++ but in borland c++ gives me this error.. Please help me out.. The code has no syntax errors and works fine.. Seems like there is a problem with the header.. But these are the standard headers and library files Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland main.c: Error E2337 c:\Bor...

Borland Warning 8092

Regarding the following C++ code, LengthAlphabeticalSort lengthAlphabeticalSort; outputList.sort(lengthAlphabeticalSort); // causes borland 8092 error, guaranteed stable_sort. class LengthAlphabeticalSort { public: bool operator() (std::string str1, std::string str2) { if(str1.length() < str2.length()) ...

how to check if a Windows user can install application? or Is a windows computer member of a domain?

Hi, I am re-implementing auto-update mechanism in an application for internal use in our company. The old system used .exe based installers, which I had to replace with .msi based installer which can work in a Windows Domain. This I have done and works well. Most of users in our headquarter are members of windows domain, but there ar...

DOS-reported error: Bad file number

I have a batch file that tries to compile a static library using Borland C++ Builder 6.0 It is called from Borland make (makefile created with bpr2mak) which is called from a .bat file (used to compile the whole project with Visual Studio and some Borland C++ Builder legacy projects), which is called from a bash shell script running ins...

web page in C++ desktop application

Hi! I have a Borland C++ application and I am new to desktop applications. I would like in one of the pages to embed a web page of another application of mine that the URL is something like: www.mysite.com/thepage In HTML I can use <IFrame>. How can I do it in Borland C++? ...

Why might ProcessMessages throw a C++ Exception?

While maintaining an old product, I came across an error that results in the screen being filled up with hundreds of message boxes saying 'C++ Exception' and nothing else. I traced the problem to the following line: Application->ProcessMessages(); I understand the purpose of this line, to process all the messages in the message queue...

Build issues with a C++ - C++/CLI - C# project (Borland and VS-specific components)

Hello again, StackOverflow! Today's issue is a bit odd, but please bear with me. Any advice / suggestions extremely appreciated! I've inherited an old codebase on a project with some components that date back to 2002. There is no documentation at all for this project, and the original machine which had the build set up on no longer exi...