c++builder

BDS2006 and Zeos installation

两盒软妹~` 提交于 2019-12-12 01:15:18
问题 I recently installed Zeos 6.6 stable on BDS2006 for both the Delphi and C++ personalities. In order to do so, and since Zeos is written in Delphi, I checked the " Generate all C++ Builder files " when building the packages. The problem I found was that, somehow, not all necessary .DCUs were generated during the building of the different packages. I finally worked around it by first building only for Delphi (which worked flawlessly) and then rebuilding for both Delphi and C++. Now, I am not

TeeChart X Axis Label Formatting

こ雲淡風輕ζ 提交于 2019-12-12 00:55:28
问题 I’ve got my TeeChart looking pretty good, the grid lines / ticks appear where I wish and so forth (the X Axis LabelStyle is set to talAuto). Now I need to format the X Axis labels so they display a time offset rather than the data point number. I’ve changed the LabelStyle to talMark and am handling the chart’s OnGetAxisLabel. The problem is that my event handler is called for every X Axis point rather than just the points which displayed labels when I had LabelStyle set to talAuto. How can I

Using a Very C# DLL in C++

戏子无情 提交于 2019-12-11 23:42:53
问题 I am trying to use a C# DLL which has multiple references to .NET classes and C# Classes in Embarcadero C++ Builder. Things like the Point class and String class as well as Delegates. I am wondering if the >NET references or C# ones will mess me up somehow. I am just about to getting it hooked up, but I am wondering if some of the problems I am having could be caused by C++ not wanting to play nice. 回答1: I gave a similar answer to your problem in this question. You basically want a C++/CLI

Call SetWindowsHookEx with method defined in header file

有些话、适合烂在心里 提交于 2019-12-11 22:57:05
问题 I am attempting to add a low level mouse hook to a class. I am able to do so by placing this function in my CPP file: LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam, LPARAM lParam) { //my hook code here return CallNextHookEx(0, nCode, wParam, lParam); } Then, I set up the hook in the class constructor like so: HHOOK mousehook = SetWindowsHookEx(WH_MOUSE_LL, MouseHookProc, NULL, 0); This works fine for intercepting mouse events, however since the callback function is not defined in my

Builder C++ creating STRINGTABLE in resource

蓝咒 提交于 2019-12-11 20:09:12
问题 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? 回答1: There is no resource editor built in to C++Builder 2010. You can easily add either a .res file built with another tool, or create a .rc file to add to your project and have the resource compiler create the resource. The following is an example of an .rc file which includes a string table #define IDS_HELLO 1 #define IDS_GOODBYE 2 STRINGTABLE BEGIN IDS_HELLO,

c++ Excel OLE automation. Setting the values of an entire cell-range 'at once'

余生颓废 提交于 2019-12-11 19:06:17
问题 IDE: Embarcadero XE5 I am attempting to improve the performance(speed) of an 'export to excel' procedure. The procedure contains way too many OLE function calls and property read/write calls, hence the poor performance. At present, a grid(2D array) is exported to excel by stepping through each cell in the grid and setting it's value. I'm trying to export the entire grid into a excel cell-range at once, but failing in my attempts. Now for Embarcadero Delphi-users this seems to be a trivial

C++ builder - enumerate components on TPanel

两盒软妹~` 提交于 2019-12-11 18:42:39
问题 It is quite simple to enumerate Form components for (int i=0;i<ComponentCount;i++) { ShowMessage(Components[i]->Name); //..... } but the same thing does not work if I want to enumerate only the components which are located on Panel. for (int i=0;i<Panel1->ComponentCount;i++) { ShowMessage(Panel1->Components[i]->Name); //..... } because Panel1->ComponentCount; is just zero while having several components on Panel. So, how can I enumerate the child components of Panel? 回答1: The ComponentCount

C++ Builder 2009 - How to Determine if Control's Window is Visible

我与影子孤独终老i 提交于 2019-12-11 18:05:38
问题 I have a TWinControl and am trying to determine if the parent window is visible. I see TWinControl has a property of ParentWindow . The return type of ParentWindow is void * . So I'm curious if I must cast to a particular type, which would then give me access to check if the window is visible or not. Does anyone know the type I need to cast to, or another way to accomplish this? Additional Troubleshooting Notes, Part 1: I tried to get the ParentWindows class by: String parentWindowClassName =

Translating JS extension demo (CEF4Delphi) from Delphi to C++Builder fails OnWebKitInitialized

☆樱花仙子☆ 提交于 2019-12-11 17:58:00
问题 I want to build the JS Extension demo project included with CEF4Delphi downloaded from https://github.com/salvadordf/CEF4Delphi, which has been installed on C++Builder XE7. My goal is to send messages and variables from Chromium (webpage, javascript) to native C++ function. I found the delphi demo which works good. But I need to translate to C++Builder, and I translated almost of code. It works good if I do not set OnWebKitInitialized member of TCefApplication. But I need to set in order to

Missing/wrong headers iOS 11.3 SDK

守給你的承諾、 提交于 2019-12-11 16:45:02
问题 I am using C++ Builder 10.2.3 to create an app for iOS 64 bit devices. I have XCode 9.3 on my Mac (which is running High Sierra 10.13.4) and PAServer 19.0 from the CB 10.2.3 update. I am having compile errors when building for iOS 11.3. For example, stdarg.h file not found, stddefs.h file not found. I believe there is a problem with the SDK on the Mac, or the PC, or both. I have uninstalled and reinstalled Xcode 9.3 on the Mac. I have deleted the iOS 11.3 SDK in SDK Manager and from the local