c++builder

C++ Builder onResize event after exit

I wrote some program in C++ Builder 6 (don't ask me why). I do some actions with on-form components after formResize event occurs. But it occurs right after I close my program, and looks like all components on form where deleted, so I've got exception and everything crashes. There is my code: void __fastcall TForm3::FormResize(TObject *...

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

Converting COFF lib file to OMF format

Hello Is there any way to convert COFF library (lib file) to OMF library for using with C++Builder6 ? This coff is not just import library, it conatians some code. When I try to convert it using borland's coff2omf.exe, I get 1KB file from 15KB file. ...

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

Problem with syntax for std::binary_function usage

I'm a newbie at using the STL Algorithms and am currently stuck on a syntax error. My overall goal of this is to filter the source list like you would using Linq in c#. There may be other ways to do this in C++, but I need to understand how to use algorithms. My user-defined function object to use as my function adapter is struct is...

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

How to mix std::stream and Delphi TStream?

I'm using C++Builder, and am trying to slowly migrate code to using C++ standard library in preference to the Delphi VCL. The VCL has a streaming architecture based around the TStream class, and I'm switching to using std::stream instead. However, in the short term, I still need a way of 'mixing' use of the two stream types. I can do ...

order of overloaded methods in the vtable (on win32)

Hi, is the order of overloaded methods in the vtable always the same across win32 compilers? Problem: I have "interfaces" (pure virtual classes with no data members). They can be used via pointer from different compilers (the client gets the pointer by calling a standard c dll factory method). This works fine across different compiler ...

How to delete all the jobs from the printer

I am new to the C++ program. How to send the job to the printer and how to delete the jobs from the printer which is yet to be printed using win32 API. ...

Serializing a map of objects to xml using boost::serialization

The serialization example below is from the boost mailing list which is pretty much the same as what I would like to do. However, I have changed the archive so that it will serialize to XML. The compile does not fail if I serialize to binary, but it fails when serializing to xml. The compile fails in basic_xml_oarchive.hpp in the followi...

Summing all the numbers in a matrix revised

Hello I had recently asked a question about how to do the following: Write a function that sums all the integers in a matrix of integers using the following header: const int SIZE = 4; double sumMatrix (const double m [] [SIZE] , int rowSize, int columnSize) ; Write a test program that reads a 4-by-4 matrix and displays the sum of a...

Is the TTimer.OnTimer event handler reentrant?

I have a TTimer in my application that fires every 2 seconds and calls my event handler, HandleTimerEvent(). The HandleTimerEvent() function modifies shared resources and can take 10's of seconds to execute before returning. Furthermore, I call Sleep() in the event handler to relinquish the processor at times. I'm not sure how C++ build...

Triangular c++ edge calculation

I have been working on this source code, but nothing seems to go right. A revised source code would be extremely appreciated, or at least a visual solution to my errors. Here is the following problem: Write a program that reads three edges for a triangle and determines whether the input is valid. The input is valid if the sum of any tw...

Rectangle class

Hi everyone Im very new to c++ and may be in over my head on this problem im trying to solve. A good visual explanation and solution to my errors or even better a revised source code is all that I ask of. Thanks to everyone who invest there interest into my question. Heres the problem: Design a class named rectangle to represent a rec...

Loan calculator alteration.

Hi everyone! I created a program that calculates loans, but it doesn't go under the guidelines of what my professor asked. Can show me the correct alteration. Source Code would be awesome and time saving, but you don't have to. Heres the problem: Write a program that lets the user enter the loan amount and the loan period in number of ...

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

Recommendations for a docking library for Delphi / C++Builder?

My team is currently thinking of moving our existing MDI-based application to a more modern, docking-based approach. We're still thinking, but we'd like to move it to something like VS2010's docking and visual look: This has the following features: Shows a blended outline where the window will dock Docks into tabs, as well as side-...

project topic suggestion

I want to do Integration Project which includes Data Mining,,Software Testing ang soft Computing,,Can u suggest any topics ...

How should I embed Python in a C++ Builder / Delphi 2010 application?

I'm interested in experimenting with embedding Python in my application, to let the user run Python scripts within the application environment, accessing internal (C++-implemented) objects, etc. I'm quite new to this so don't know exactly what I'm doing. I have read Embedding Python in Another Application, though this seems to talk onl...

How do I set my MainForm to be hidden when my program starts?

Hello. I am using the Borland c++ builder. I have an application where I want the main form to be hidden until a button is pressed on a different form. i have set the Visible value on the mainform to false, but it still shows up when i run the program. anyone know what to do? ...