c++builder

Is Embarcadero C++ Builder a good choice as an IDE? [closed]

孤街醉人 提交于 2019-12-03 12:36:41
As we are (me and people I work with) more and more frustrated while working with C++ projects 250 000+ LOC in VS2010 sp1 (the slowness of this IDE is just unbelievable), in my company we were talking about migrating our code to some different IDE. We did some research, and a strong candidate seems to be Embarcadero C++ builder 2011 XE. Any thoughts on it? Is it any good? How does it compares to VS2010 ultimate? unkulunkulu Not actually an answer, but I'll just leave it here: It costs money (yes, VS too, but you already own that, don't you?) It will be not too easy to migrate a big enough

Static Virtual functions in c++

末鹿安然 提交于 2019-12-03 11:07:51
I have a base class and a derived one and I want to change base functions while keeping them static as they should be passed to other functions as static. How can I do that? The ATL framework gets around the limitation of no virtual statics by making the base class be a template, and then having derived classes pass their class type as a template parameter. The base class can then call derived class statics when needed, eg: template< class DerivedType > class Base { public: static void DoSomething() { DerivedType::DoSomethingElse(); } }; class Derived1 : public Base<Derived1> { public: static

Is the TTimer.OnTimer event handler reentrant?

天大地大妈咪最大 提交于 2019-12-03 10:01:32
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++ builder's TTimer object works when it comes to calling events, so the scenario I just explained has got me thinking, particularly, whether HandleTimerEvent() gets called before a prior call has returned. The question comes down to a couple of things. Does the TTimer

Simplifying VCL thread wrapper code

隐身守侯 提交于 2019-12-03 09:45:09
I am using thread wrapper which checks if function which updates VCL (which also has some arguments) was called from main thread or not and then executes in within the context of Main thread always. It works but I want to make it simpler. The problem is that I have to repeat this code in every function which needs VCL synchronization which is prone to errors. Is there a way to make this wrapper simpler and more re-useable? Note that this particular wrapper only uses one parameter but there can be any number of parameters which are copied to TLocalArgs and passed on. Current code: boost::scoped

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

社会主义新天地 提交于 2019-12-03 08:23:12
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 only about a C API and flat C functions, not classes or objects (unless I've missed something) and its "Embedding Python in C++" section is only two sentences long. However, I also came across how to use boost::python and this looks excellent. There's one problem:

How do I solve an unresolved external when using C++ Builder packages?

99封情书 提交于 2019-12-03 06:51:19
I'm experimenting with reconfiguring my application to make heaving use of packages. Both I and another developer running a similar experiment are running into a bit of trouble when linking using several different packages. We're probably both doing something wrong, but goodness knows what :) The situation is this: The first package, PackageA.bpl , contains C++ class FooA . The class is declared with the PACKAGE directive. The second package, PackageB.bpl , contains a class inheriting from FooA , called FooB . It includes FooB.h , and the package is built using runtime packages, and links to

How to create “No Activate” form in Firemonkey

纵然是瞬间 提交于 2019-12-03 03:13:42
问题 In XCode by adding these methods to your NSView subclass can prevent the window from becoming active when clicking on it: - (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent )theEvent { return YES; } - (BOOL)acceptsFirstMouse:(NSEvent )theEvent { return YES; } - (void)mouseDown:(NSEvent )theEvent { [[[NSApp]] preventWindowOrdering]; } In Windows platform It is done by this simple code: HWND hWnd = FindWindowW((String("FM") + fmxForm->ClassName()).c_str(), fmxForm->Caption.c_str());

Make movie with data files using gnuplot

一世执手 提交于 2019-12-03 03:09:31
I do have many data files. They look like 1.dat 2.dat .... .... 1000.dat I want to make a movie using these files plotting them in sequence. Does anyone have any idea please? It would be my great pleasure if you can help me. ND You need two steps here. The first one is to create jpeg or png plots from the data. I do not know what your data looks like, but I guess you've already found out how to plot it with gnuplot. Gnuplot has a loop option, but if you're on a linux box, you can easly pass all the files to gnuplot as arguments for example, run the following in bash: for i in {1..1000} do

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

拜拜、爱过 提交于 2019-12-03 01:09:56
问题 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-by-side Allows docking by dragging and releasing over an image showing the dock position (I call this a 'docking widget' below) Looks pretty good too (theme / UI

Tag editor component for Delphi/C++Builder

这一生的挚爱 提交于 2019-12-02 16:51:05
I need a VCL tag editor component for Delphi or C++Builder, similar to what's available for JavaScript: e.g. this one , or this one or StackOverflow's own tags editor. Is there something like this available or do I need to make it from scratch? Some specific things that I need are: Editor should allow either scrolling or become multi-line if more tags are present than the editor's width allows. If multi-line, there should be an option to define some maximum height however, preventing it from becoming too tall Option to select whether tags are created when pressing space or comma key Prompt