c++builder

Borland C++ builder 6 linker error

Hello, I am recompling a project using Borland C++ Builder 6. The recompile process failed due to linker error. The message was: "[Linker Fatal error] Fatal unable to open file ABCC.lib" I removed all references of ABCC.lib in the project option and environment options, but the same error still occurred. I even tried manually removed ...

Why the compiler is not compiling a line in C++ Builder?

Hi boys: I was programming an application in C++ Builder 6, and I had encountered this rare problem: void RotateDice() { Graphics::TBitmap *MYbitmap = new Graphics::TBitmap(); Randomize(); int rn = random(6) + 1; switch (rn) { case 1: { //... break; } //... Some cases... } ShowDice(); ...

Delph/Builder drag and drop with image, image disappears when leaving control

I have a tree control that implements drag and drop. I use an overridden OnStartDrag() to get my own TDragObjectEx that shows an image while dragging. This works perfectly within the tree control, but as soon as I leave the tree control the image disappears. The cursor stays though. I tried implementing OnDragOver, to reset the image...

Using Images and data with BLOB fields in C++ Builder

I'm a C++ programmer using Borland's C++ Builder 5. I'm working on a database application and its causing me serious grief right now... I'm using a Paradox 7.0 table with the C++ Builder and I simply can't find a way to insert data into BLOBs. I also can't save or view pictures using the TDBImage VCL component either.My latest foiled at...

XML in C++ Builder 6

How can I use XML as a simple data storage in Borland C++ Builder 6? Is there an internal class, which I could use? Thank's for help ...

Builder 2010 localization problems

I cannot localize a Builder C++ 2010 application. Even following the directions in the help file. Here is what I do: create a VCL Forms application. add the german language. add the german translation of the form caption using the translator. set my active language preference to german (project->language->set active...). build and r...

C++ Builder - basic internet programming

I want to connect two PCs and have them communicate. Is there a nice component to do that? (preferably from TMS, or free), or do I just use standard C++ socket libraries? What about sending data? Should I invent a simple protocol? TLV (type/length/value), where T is the message type and .. you get the picture... ...

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

Builder C++ creating STRINGTABLE in resource

I cannot find anywhere how to create a stringtable in Builder C++ 2010. Do I have to use an external editor or is there another way? ...

Change CheckBox state without calling OnClick Event

I'm wondering so when I change state of CheckBox CheckBox->Checked=false; It calls CheckBoxOnClick Event , how to avoid it ? ...

placing Indy TIdTCPClient into a non-visual package

i All, I am trying to get TIdTCPClient to run in my non-visual component. I add the following to my .h file: #include "IdBaseComponent.hpp" #include "IdComponent.hpp" #include "IdTCPClient.hpp" #include "IdTCPConnection.hpp" ... private: TIdTCPClient *mTCPClient; It all compiles fine, but of course Indy is not included in the bui...

The problem of adapting the MSVC++ code for C++Builder- __declspec(align(n)).

I have a huge issue of adapting the code into C++Builder. What is the equivalent in C++Builder for __declspec (align (n))? I do not mean the #pragma pack ([show] | [push | pop] [, identifier], n). I need something for the macro. I have a problem with adopt a code below (especially for __declspec(align(n))): #elif defined(_MSC_VER) #d...

How to access Active Directory using C++Builder?

I need to get a list of user names from Active Directory using C++Builder. I know I could shell out to batch file and run the csvde.exe command but surely there is a nicer way using a library or something, right? Are there any C++ libraries? (hopefully with examples?) Many thanks! -Dan ...

How can I visually design a component in C++ Builder?

I have been away from C++ for a couple of years now doing AS3/Flex work. I have gotten used to being able to create a component and place it in design mode with very little fuss and I am struggling to get my head around the C++ Builder way of doing the same thing. I have written many components for C++ Builder in the past, but none of t...

What button control can react when the mouse is over it?

I'm using C++ Builder 6 and I need something like TBitBtn, but it should react when mouse is pointing at it by changing to another image. Yes, I know I can use OnStartDoc but there is no OnStopDoc. :( ...

AnimateWindow Slide

I want my form slide down and back to position with slide animation, how to make correct AnimateWinows, if it real for sure ... void __fastcall TUsers::BitBtn1Click(TObject *Sender) { if (!pressed) { Height=700; //AnimateWindow(Handle, 500, AW_CENTER | AW_SLIDE | AW_VER_POSITIVE); pressed=true; } else { p...

Grid : Scrolling Scrollbar

Hello. I've got DBGrid (I guess in this question it doesn't matters DBGrid or StringGrid) Delphi or C++Builder I need automatic redrawing when I scrolling my Grid right when I pressed key down and start scrolling (not when I key up) And I also request for mouse Scrolling. T_T C++Builder 6 ... so poor ... ...

Printf used in unfamiliar fashion

I found this line of code when upgrading a C++ Builder project to RAD Studio 2009: mProcessLength->Text.printf("%d",mStreamLength); It doesn't compile in 2009, however what is the intent of this line and what is a better equivalent? Given that mProcessLength->Text is now a wchar_t*. ...

BCB : how to iterate over controls on a form?

I am looking for some BCB code to iterate over the controls on a form and get some information about them. I tried using myForm->ControlCount and typeid(myForm->Controls[i]) but this gave me a few problems. 1) typeid(myForm->Controls[i])->Name always gives "TControl *" and I was hoping for "TEdit *", "TMemo *", etc Can I get round tha...

BCB: how to get the (approximate) width of a character in a given TFont?

It's a TMemo, not that that should make any difference. Googling suggests that I can use Canvas->TextWidth() but those are Delphi examples and BCB doesn't seem to offer this property. I really want something analogous to memo->Font->Height for width. I realize that not all fonts are fixed width, so a good estimate will do. All that I...