RibbonFramework icon indicating copy to clipboard operation
RibbonFramework copied to clipboard

Please add examples for C++ Builder

Open irvanherz opened this issue 9 years ago • 6 comments

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.

irvanherz avatar Jan 28 '17 23:01 irvanherz

Any volunteer out there that creates a sample project for C++ Builder?

joachimmarder avatar Jan 29 '17 08:01 joachimmarder

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?

matjak2 avatar Feb 22 '17 13:02 matjak2

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).

Fedel71 avatar Oct 10 '18 11:10 Fedel71

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.

Fedel71 avatar Oct 10 '18 11:10 Fedel71

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?

joachimmarder avatar Oct 12 '18 09:10 joachimmarder

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)); }

ttwwoo2345 avatar Sep 30 '21 06:09 ttwwoo2345