c++builder

Compiling C++Builder project on command line

别来无恙 提交于 2019-12-19 06:02:55
问题 Is there a way to compile a C++Builder project (a specific build configuration) from the command line? Something like: CommandToBuild ProjectNameToBuild BuildConfiguration ... 回答1: Use: msbuild project.cbproj /p:config=[build configuration] More specifics can be found in Building a Project Using an MSBuild Command . 回答2: There are different ways for automating your builds in C++Builder (as of my experience, I'm speaking about old C++Builder versions like 5 and 6). You can manually call

What do I need to know to upgrade a complex application from C++Builder 2007 to 2010?

北城余情 提交于 2019-12-19 04:10:18
问题 My company's main application is mostly written in C++ (with some Delphi code and components). We are upgrading from RAD Studio 2007 to 2010 for the next release, starting in about a week. What do I need to know to ensure this upgrade goes smoothly? Points I have thought of so far are: Unicode. This one looks really complicated. Our app contains a horrible mix of std::string-s and AnsiString-s with casts to and from them. I have lots of questions about this, such as "is wstring capable of

What do I need to know to upgrade a complex application from C++Builder 2007 to 2010?

可紊 提交于 2019-12-19 04:10:07
问题 My company's main application is mostly written in C++ (with some Delphi code and components). We are upgrading from RAD Studio 2007 to 2010 for the next release, starting in about a week. What do I need to know to ensure this upgrade goes smoothly? Points I have thought of so far are: Unicode. This one looks really complicated. Our app contains a horrible mix of std::string-s and AnsiString-s with casts to and from them. I have lots of questions about this, such as "is wstring capable of

Migration of Traditional Windows Service to Service Fabric

假如想象 提交于 2019-12-19 04:05:31
问题 I'm kicking the tires on the preview release of Service Fabric for Windows Servers found here: Create and manage a cluster running on Windows Server We are trying to solve the problem of the perception of too many Windows services to manually manage, contemplating infrastructures that would make the services more automatically managed. We currently run on-premises, so we are looking at Service Fabric for Windows Servers, not Service Fabric on Azure. I have a native Windows service (Windows NT

C++ Builder or Visual Studio for native C++ development?

人盡茶涼 提交于 2019-12-18 12:16:48
问题 I've decided I want to get more into native code development with C++. I'm trying to decide if I would be better served using CodeGear C++ Builder 2009 or Visual Studio 2008. I currently use Delphi 2007, so I'm very comfortable with C++ Builder's IDE (its the same as Delphi), as well as the VCL and RTL. I've never been a big fan of MFC (from the first time I played around with it in the VS 6.0 days), but haven't taken a close look at it since then. I'm interested in hearing from some experts

teechart problem for series label

懵懂的女人 提交于 2019-12-18 09:40:48
问题 series[0]->AddXY(30,10,'label1',clRed); series[0]->parent = chart; This is my code to print 1 series on chart. Now I am getting label1 printed on X axis. Is there any way to print this label on Yaxis. 回答1: You should set left axis LabelStyle to talText , for example: Chart1->Axes->Left->LabelStyle = talText; 来源: https://stackoverflow.com/questions/7011648/teechart-problem-for-series-label

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

寵の児 提交于 2019-12-18 07:08:27
问题 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 problems with a third-party component in the main form over which I have no control. 回答1: Override CreateParams method of your form and add WS_EX_NOACTIVATE style

BCB : how to iterate over controls on a form?

坚强是说给别人听的谎言 提交于 2019-12-18 05:17:17
问题 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 that by using if (typeid(myForm->Controls[i]) == typeid(TEdit)) and then casting? (if so, how best to cast?) 2) how can I (probably by casting) get the properties

Eclipse CDT: Unresolved inclusion of stl header

删除回忆录丶 提交于 2019-12-17 10:35:09
问题 I'm trying to use Eclipse to edit sources, compiled under C++ Builder, but stuck with Unresolved inclusion problem. For example, code like: #include <vector> Gives Unresolved inclusion: <vector> error in Eclipse IDE. C++ Builder indeed has no vector file, instead it has vector.h which is used by compiler. Eclipse IDE gives no error if I write #include <vector.h> How do I tell Eclipse to use vector.h when it sees #include <vector> ? 回答1: This allowed me to avoid Eclipse "Unresolved inclusion"

XE6 How do you check if a UnicodeString is null?

蹲街弑〆低调 提交于 2019-12-14 03:53:54
问题 I'm using C++ Builder XE6 . I'm getting a UnicodeString as a parameter and I wish to check if the string is set to NULL, and not an empty string. I've tried to do some simple compares to see if the param is null, but seem to be failing. I'm using the == operator which doesn't seem to be working, which makes me think it is overloaded. I've tried: if (searchString == NULL) In the debugger view, it shows the value of { NULL } in the local variables. If I add the variable to the watch list, then