Please add examples for C++ Builder
I have downloaded this package from GetIt in C++ Builder 10.1 Berlin. But I don't have enough example to understand how to use it.
Any volunteer out there that creates a sample project for C++ Builder?
I also try to make project in c++ like for delphi. All goes OK with compiling and linking. but when i run, i got OLE Error unspecified and "An error occurred while trying to load the Ribbon resource "APPLICATION": Unspecified error.
Ihave C++ Builder 10.1.2 Berlin (Update2). Someone has some idea what i'm doing wrong?
About the error "An error occurred while trying to load the Ribbon resource "APPLICATION": Unspecified error". This is a bug in the 32 bit version of CBuilder. It is necessary to remove UIRibbonPackage.bpl from the list of packages for dynamic linking (Packages/Runtime Packages).
For the 64 bit version there is an unpleasant problem. The compiler requires 64 bit library UIRibbonPackage.bpi, which is not. If you clean the XML project file from UIRibbonPackage.bpi, then compiler requires 64 bit library UIRibbonPackage.a If you select "remove this reference" in the pop-up window, the compilation will be successful and the program will start. However, it is very inconvenient to do at each compilation.
For the 64 bit version there is an unpleasant problem. The compiler requires 64 bit library UIRibbonPackage.bpi, which is not. If you clean the XML project file from UIRibbonPackage.bpi, then compiler requires 64 bit library UIRibbonPackage.a
I added the C++ Builder link demand to a source file. Does the latest GitHub master improve this situation?
About the error "An error occurred while trying to load the Ribbon resource "APPLICATION": Unspecified error". You can add the following code in the mainform:
void __fastcall TForm1::FormCreate(TObject *Sender) { UIRibbon1->ResourceInstance = int(GetModuleHandle(0)); }