c++builder

C++ Builder XE4, 10.2 Tokyo > TStreamWriter > clWhite cannot be copied

旧巷老猫 提交于 2021-02-19 09:42:04
问题 My environment: RadStudio 10.2 Tokyo (and also XE4) I was implementing a copy property method to copy TShape properties. Following is what I implemented: //--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //-----------------------------------------------------------------

“[ilink32] Fatal: Out of memory” in C++ Builder

被刻印的时光 ゝ 提交于 2021-02-18 06:27:11
问题 After updating Embarcadero C++ Builder to a new version, our project suddenly fails to build. This happens just with one of our projects. For the most of the team members, identical code builds without errors. On my computer, linking fails every time. In Build tab: [ilink32] Fatal: Out of memory In Output tab: Build FAILED. c:\program files (x86)\embarcadero\studio\18.0\Bin\CodeGear.Cpp.Targets(3517,5): error : Fatal: Out of memory There is no more information. If I enable Link with Dynamic

C++ Builder - program end error and localization error

丶灬走出姿态 提交于 2021-02-11 12:22:38
问题 I have a problem with a program I have done with Embarcadero C++ Builder. Part one: I want to make stand-alone .exe file, and according to that i have disabled "link with dynamic RTL" and disabled "link with runtime packages". But, every time i end my program, I get an error "Abnormal program termination". I've invstigated that and found a partial solution. When I enable link with runtime packages, that error does not appear, but .exe file won't run on PC which don't have C++ builder

Open two forms at startup in c++ builder

时光毁灭记忆、已成空白 提交于 2021-02-10 18:38:46
问题 I want to open two different forms when running my program. Forms are named Form2 and Form3. Form2 runs normally, but Form3 doesn't. I have put Application->CreateForm(__classid(TForm3), &Form3); on my project cpp file and Form3->Show(); in my Unit2.cpp file, but I get error: "Access violation at address 0047B2CE in module 'Project2.exe'. Read of address 00000384." What am I doing wrong? 回答1: Without seeing your actual code, it is hard to say, but chances are that Form3 has simply not been

Open two forms at startup in c++ builder

空扰寡人 提交于 2021-02-10 18:28:14
问题 I want to open two different forms when running my program. Forms are named Form2 and Form3. Form2 runs normally, but Form3 doesn't. I have put Application->CreateForm(__classid(TForm3), &Form3); on my project cpp file and Form3->Show(); in my Unit2.cpp file, but I get error: "Access violation at address 0047B2CE in module 'Project2.exe'. Read of address 00000384." What am I doing wrong? 回答1: Without seeing your actual code, it is hard to say, but chances are that Form3 has simply not been

open local pdf file Android

走远了吗. 提交于 2021-02-08 10:38:23
问题 I'm downloading a pdf file to the Downloads folder to view. For iOS and Win32 this is easy because the TWebBrowser handles pdf files fine. My problem is with Android. Below is my code: if (FileExists(LFileName)) // pdf file is there { #if defined(_PLAT_IOS) || defined(_PLAT_MSWINDOWS) Form1->WebBrowser1->URL = "file://" + LFileName; Form1->WebBrowser1->Visible = true; #endif #if defined(_PLAT_ANDROID) Androidapi::Jni::Graphicscontentviewtext::_di_JIntent intent = TJIntent::Create(); intent-

How can I troubleshoot design-time packages in Delphi/C++Builder?

蹲街弑〆低调 提交于 2021-02-07 20:57:36
问题 I have consistently had IDE problems in Delphi/C++Builder for years, with every version. I usually just reboot, recompile, etc. and move on. However, I keep seeing others say that the IDE is rock solid. I've read many people say that most IDE problems are a result of custom component problems. We have several of our own custom components and I would not be at all surprised that they were causing the problems. However, I have no idea how to find out. 1) I cannot easily just uninstall a

How can I troubleshoot design-time packages in Delphi/C++Builder?

為{幸葍}努か 提交于 2021-02-07 20:56:15
问题 I have consistently had IDE problems in Delphi/C++Builder for years, with every version. I usually just reboot, recompile, etc. and move on. However, I keep seeing others say that the IDE is rock solid. I've read many people say that most IDE problems are a result of custom component problems. We have several of our own custom components and I would not be at all surprised that they were causing the problems. However, I have no idea how to find out. 1) I cannot easily just uninstall a

How to call Delphi DLL WideString Parameters from C++ (including var parameters)

廉价感情. 提交于 2021-02-05 09:13:28
问题 I have a Delphi DLL that works when called by delphi apps and exports a method declared as: Procedure ProduceOutput(request,inputs:widestring; var ResultString:widestring);stdcall; On the C++ side I have tried: [DllImport( "ArgumentLab.dll", CallingConvention = CallingConvention.StdCall, CharSet=CharSet.WideString )]; extern void ProduceOutput(WideString request, WideString inputs, WideString ResultString); WideString arequest = WideString(ComboBox1->Text); WideString ainput = "<xml> Input

How to check if a unicode character is within given range in C?

耗尽温柔 提交于 2021-01-29 22:02:02
问题 The following function was written for java and has been adapted for C. bool isFullwidthKatakana(WideChar C) { return(('\u30a0'<=C)&&(C<='\u30ff')); } The problem is that my framework ("CodeGear C++Builder") shows this error: [BCC32 Warning] Unit1.cpp(101): W8114 Character represented by universal-character-name '\u30a0' cannot be represented in the current code page (1252) and it does not return true whether the conditions are met. For example one input is 'ア' (0x30A2). What should I do? How