Using facilities from Erik Van Bilsen (GitHub) to create a ribbon-style menu, and carefully following the instructions for incorporating a simple ribbon menu into a new VCL form application in Delphi 10.1, I run into an OLE exception (unspecified) when running my app. The error happens at the line indicated below:
procedure TUIRibbon.Load();
Ribbon resource "%s": %s';
var
Inst: THandle;
lForm: TCustomForm;
begin
if (Available) and (inherited Visible) and not (FLoaded) then
begin
// Load mapper for mapping between commands and VCL actions
fRibbonMapper := TRibbonMarkupElementList.LookupListByResourceName(FResourceName);
if (FResourceInstance = 0) then
Inst := HInstance
else
Inst := FResourceInstance;
try
// OLE Exception. Unspecified error happens here:
FFramework.LoadUI(Inst, PChar(FResourceName + '_RIBBON')); //Note: FResourceName = 'APPLICATION' here.
FLoaded := True;
if Assigned(FOnLoaded) then
FOnLoaded(Self);
if roAutoPreserveState in Options then
Any suggestions?