c++builder

Tips to speed up debugging in Codegear

Are there any tips to speed up debugging in Codegear? For example, when I set breakpoints it can sometimes take a long time for the IDE to be active once the breakpoint is reached and likewise when I hit F8(stepover). ...

WinCheat / WinSpy-like tool for C++ Builder exes

I just came back to C++ Builder after 5 or more years away. I seem to remember a nice tool where I could drag its pointer over the GUI of my running application and get lots of info about what was pointed at - handle, size, text, parent, children, etc IIRC, if the exe include debug info I could also get the actual variable name as used...

BCB / Delphi: I am doing something stupid - but what?

I have been away from BCB for over five years, and now I am having a st00pid n00b moment. I am using BCB, and using a VCL component package for which I have the Delphi source. I want to comment out a few lines in the Delphi source of the component (to not add a few toolbars in a form's OnCreat()). So, I comment it out, and the syntax ...

Piloting Microsoft Word With Ole in C++ Builder : how to put Word in the foreground.

Hi! I've got a code (which works fine) for piloting word with C++ Builder. It's useful for reaching different bookmarks in the document. Variant vNom, vWDocuments, vWDocument, vMSWord, vSignets, vSignet; vNom = WideString("blabla.doc"); try { vMSWord = Variant::GetActiveObject("Word.Application"); } catch(.....

How do I hide an inherited __published property in the derived class in a VCL component?

I have created a new VCL component based on an existing VCL component. What I want to do now is set the Password and Username properties from an ini file instead of the property inspector. Robert Dunn Link I read on the delphi forum above you cannot unpublish a property and that the only workaround is to redeclare the property as read-...

Boost PropertyTree library with C++Builder?

Has anyone got tried this or got it working with Embarcadero C++Builder 2010 - If so, what did you need to do? ...

How do I backup my C++ Builder component installation?

Hi I finally have my C++ Builder 2010 installation the way I want it, with all my components upgraded and installed. (touch wood) I have been working with C++builder since version 1 and I know from countless previous traumatic experiences that this state of affairs could change in an instant. I would like to backup the installation and...

DataBaseGrid->Fields[2]->Value on Previous Row

how to get DataBaseGrid->Fields[2]->Value on Previous Row ? for examole 1 2 3 1 2 4 1 2 5 my selected tow is 1 2 4 , and I want to get 3 :/ Maybe change selected index manually ? ...

Can I enable/diable groups of breakpoints in C++ Builder?

The title says it all. One specific instance, I want to set a BP on every switch(msg) handled in WndProc() - but not until my app has initialized and is 'stable'. Of course, it receives a lot of windows messages when it starts up. I can't see a way to toggle a group of breakpoints, or to save them for later, use other BPs then restore ...

Delphi - form within form

For aesthetic reasons, I want to show a form on top of another form, just as if it were a component, say like a TPanel. It should resize with the parent, move around as th eparent is drageed by its title bar, etc. ----------------------------- | main form component 1 | ----------------------------- | main | the 'embedded' | ...

C++ Builder 2010 Exception Dead Lock ???

Hello Is this some kind of exception dead lock i am facing? How to avoid it ? Have a look at below line where i have TIdContext objects of connected clients stored in an objlist and at times i need to process it. But if one user is disconnected while another thread is processing the list, then for that freed TIdContext->Data object ...

Block windows shutdown

Hi! I need execute some code before Windows shutdown process each time. So, I want block Windows shutdown process for some time. How can i do it from Java or C++ Builder ? Thanks. ...

Abnormally disconnected TCP sockets and write timeout

Hello I will try to explain the problem in shortest possible words. I am using c++ builder 2010. I am using TIdTCPServer and sending voice packets to a list of connected clients. Everything works ok untill any client is disconnected abnormally, For example power failure etc. I can reproduce similar disconnect by cutting the ethernet co...

TDBGrid selected row index : How to get

How to get Selected row index in DBGrid ? so Im using ADOQuery -> DataSource -> DBGrid ...

How to prevent form from being activated when the users clicks on it?

I have a main form and non-modal autocomplete form. How can I prevent the autocomplete form from being activated by the user, when the user clicks on the list in the autocomplete form? So, basically I want the autocomplete form the receive the mouse click message when the users clicks, but to never become active, because it causes probl...

VCL/Delphi/BCB - which IDE/language should I use?

I bought Delphi 1 when it came out - and was hooked. When BCB came out (around D3, iirc), I switched, mainly because I have used C/C++ professionally for a few decades. I have "been away" for 7 or 8 years and am now returning. I still have BCB 6 & Delphi 7 (not to mention Kylix). I always felt more comfortable with C++ than Pascal - p...

Generate header of view .obj file

Is there a way to generate a c++ header file for an .obj file? Or perhaps is there an utility that can view .obj files. I've already found objconv that converts between formats, but I can't find any .h generator/viewer. ...

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

Conditional directive to identify C++ Builder personalities

Hello, I have a Delphi component which I want to install and have it available at the component palette in Delphi but not in C++ Builder. In BDS/RAD 2006 and above I can either have it installed for both personalities or none. I need to do so because this component uses 3rd party libraries that doesn't support C++ Builder. I have look...

Disable hotkey on vcl controls

I do have a TPageControl that I do add and remove TTabsheet's from, and in the TTabsheets there are 2 TEdit's that the user can type firstname and lastname, when they do the Tab Caption does show what they have written. But if the user add a '&' somewhere in the TEdit (and they are allowed to do) the tab do get the char after '&' as (un...