c++builder

Implementing VirtualTreeView TVTDefaultAccessibleProvider in C++ Builder

时光总嘲笑我的痴心妄想 提交于 2020-02-25 23:06:28
问题 When using VirtualStringTree to add accessibility support it is required to include the unit VirtualTrees.Accessibility in the uses section. This works in Delphi. The equivalent of this in C++ Builder would be to include the #include "VirtualTrees.Accessibility.hpp" . But including the include file doesn't have any effect. I've traced the problem to the VirtualTrees.Accessibility.pas file and it executes a few lines of code to register the default accessibility provider in Delphi while this

Using Chromium Edge WebView2 in Delphi or C++ Builder

纵然是瞬间 提交于 2020-02-24 11:54:08
问题 Now that the Microsoft Chromium Edge is final, is it possible to use it in Delphi or C++ Builder? As I understand it is based on a WebView2 component. Is there a component such as TWebView2 or will Embarcadero provide one? Is there an example how to host WebView2 in Delphi / C++ Builder? Is it enough to install the latest Edge version so the app can utilize it? There was an example for the older version - EdgeHTML - here: Using WebView (EdgeHTML) in Delphi / C++ Builder 回答1: You can use

The initialization part is not called

≡放荡痞女 提交于 2020-02-23 10:29:32
问题 I'm maintaining the VirtualTreeView component for Delphi and C++Builder. With Delphi everything is okay but when I compile the packages with the C++Builder the code in the initialization part in the Delphi units is not called. Any ideas? 回答1: When a Delphi unit's initialization / finalization sections are not being called in a C++Builder project, it usually means the Delphi unit is not being linked into the final executable, typically because the C++ code is not directly referencing any code

Unmarshalling Error

余生颓废 提交于 2020-02-05 01:30:29
问题 I have a pretty abnormal(IMHO) error that it's being raised whenever I try do a request to a SOAP service: Unmarshalling Error: unexpected element (uri:"http://www.domain.com/ws/servicename/", local:"dummyArg"). Expected elements are <{}dummyArg> The method that I'm calling has is defined as: function GetData(const dummyArg: WideString): Array_Of_Data; stdcall; I have little experience with SOAP therefore I'm this [ ] close to lose my mind, I couldn't find any useful information on this. Feel

Deleting TFrame from form at run time

我只是一个虾纸丫 提交于 2020-02-04 11:50:11
问题 I am using C++ Builder to create a VCL form application. Right now I have a TFrame containing a bunch of components and it looks like this... I also have a button call "Add". Basically every time I press that Add button on the form, a new TFrame is added to it and below the previous one making something that looks like a table. And in order to add duplicates I have to rename the TFrame each time before it is created. int __fastcall TForm1::AddMapCells(void) { Num++; TFrame1 * MyFrame = new

Is VCL or MFC free to use in my application? [closed]

不羁的心 提交于 2020-02-03 12:13:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Here 'free' means no need to buy any license. As I know VCL comes from Borland C++ Builder which is a commercial IDE. MFC belongs to Microsoft Visual Studio. If I didn't buy any license of BCB or MSVS, could I complie the header files of those two libs and link them to my own application(free app, no commercial

Calling DLL Functions under a namespace in RAD Studio

人盡茶涼 提交于 2020-01-25 06:49:09
问题 I'm new to using RAD Studio as I currently have to use it for this current project. What I am trying to do is call functions defined in a DLL file which I generated in Visual Studio in a RAD Studio C++ project . Following the advice from this question below Using Visual Studio DLL in Embarcadero RAD Studio XE? I have converted the C++ DLL file I have generated from Visual Studio to a supported file for RAD studio using their command: mkexp pub-sub-sample.a pub-sub-sample.dll I can verify that

Use #pragma pack with #define on Borland C++

≡放荡痞女 提交于 2020-01-23 01:02:45
问题 I am trying to pack some structs with Borland C++Builder (XE6) (in the future: bcc). I am using a library which uses the following construct to create structs: #ifdef _MSC_VER #define PACKED_BEGIN __pragma(pack(push, 1)) #define PACKED #define PACKED_END __pragma(pack(pop)) #elif defined(__GNUC__) #define PACKED_BEGIN #define PACKED __attribute__((__packed__)) #define PACKED_END #endif PACKED_BEGIN struct PACKED { short someSampleShort; char sampleByte; int sampleInteger; } structType_t;

Is there an FMX function to set a TImage's transparent color at runtime?

笑着哭i 提交于 2020-01-17 10:57:57
问题 I have a TImage on a form in FMX (FireMonkey). I want to load a bitmap into the TImage at runtime, where the bitmap should have a transparent background defined by the first pixel's color in the bitmap. This color might be different from bitmap to bitmap. I know how to do this at design time, by using the MultiResBitmap editor for a TImage. However, I can't find any examples of how to do this at runtime. Do I have to do this manually (get the color of the first pixel in the bitmap, then

Is there an FMX function to set a TImage's transparent color at runtime?

元气小坏坏 提交于 2020-01-17 10:54:52
问题 I have a TImage on a form in FMX (FireMonkey). I want to load a bitmap into the TImage at runtime, where the bitmap should have a transparent background defined by the first pixel's color in the bitmap. This color might be different from bitmap to bitmap. I know how to do this at design time, by using the MultiResBitmap editor for a TImage. However, I can't find any examples of how to do this at runtime. Do I have to do this manually (get the color of the first pixel in the bitmap, then