Error in XbpToolbar

Xbase++ 2.0 Build 554 or later
Message
Author
Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Error in XbpToolbar

#1 Post by Piotr D »

Hi,
one of my customer report an error. This is only on computer with Office2022 (upgrade from Office2013). On another computers works fine. The line in program with error is:

::oToolbar:LoadImageSet( XBPTOOLBAR_STDIMAGES_SMALL )
::oToolbar:ButtonClick := {|oButton| ::ToolButtonClick(oButton)}
oButton := ::oToolbar:AddItem()
oButton:Image := STD_IMAGE_FILEOPEN <-- line 263


Has anyone encounered this problem? mscomctl.ocx is registered on this computer. This toolbar is created for an XbpRtf object.

Regards
Piotr
Attachments
Error.png
Error.png (7.84 KiB) Viewed 11876 times

Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Error in XbpToolbar

#2 Post by Piotr D »

Solved!
The problem is identical like in 2012, described: http://support.microsoft.com/kb/2597986
Runnig this batch as administrator:

REM delete bad register
reg delete hkcr\typelib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0 /f

if exist %systemroot%\SysWOW64\cscript.exe goto 64
%systemroot%\system32\regsvr32 /u mscomctl.ocx
%systemroot%\system32\regsvr32 mscomctl.ocx
exit

:64
%systemroot%\sysWOW64\regsvr32 /u mscomctl.ocx
%systemroot%\sysWOW64\regsvr32 mscomctl.ocx

Exit


and all works fine.

Regards
Piotr

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Error in XbpToolbar

#3 Post by Auge_Ohr »

jo,

i wonder that People still use M$ComCtl.OCX which is not Part of OS any more while have "Security" Problem
greetings by OHR
Jimmy

Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Error in XbpToolbar

#4 Post by Piotr D »

Yes, Jimmy,
as you see, most people use XbpToolbar class, which is from XbpActiveXControl superclass.

Regards
Piotr

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Error in XbpToolbar

#5 Post by Auge_Ohr »

hi,

it is a (bad) Joke that Alaska still provide XbpToolbar() and XbpStatusbar() which are using MsComCtrl.OCX

i have wrote those Controls as "native" Version in my DXE LIB, which i have send Roger some Years ago
it use Ot4Xb so Roger have never release it with Express++

now using Xbase++ v2.x somebody can try to re-write it for "pure" Xbase++
so if somebody is interest, write me a Private Email so i can send Source of Control
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error in XbpToolbar

#6 Post by rdonnay »

Anyone who is using eXpress++ had had DCTOOLBAR and DCSTATUSBAR for about 20 years now and this is all Xbase++ code.
The eXpress train is coming - and it has more cars.

Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Error in XbpToolbar

#7 Post by Piotr D »

But MsComCtrl.OCX is still needed to use with XbpRtf() (also DCRTF).

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error in XbpToolbar

#8 Post by rdonnay »

But MsComCtrl.OCX is still needed to use with XbpRtf() (also DCRTF).
Yes it is. I didn't want to put a big investment of time into RTF.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error in XbpToolbar

#9 Post by rdonnay »

it use Ot4Xb so Roger have never release it with Express++
Two times I incorporated third party features into eXpress++ and both times the developer failed to support his product.
That is why I only incorporate features that are available in Xbase++ libraries.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Error in XbpToolbar

#10 Post by Auge_Ohr »

hi,
Piotr D wrote: Mon Oct 16, 2023 1:24 am But MsComCtrl.OCX is still needed to use with XbpRtf() (also DCRTF).
Yes ... it is a Problem of Alaska while they never wrote a never Version as "native" Control of RTF

btw, as i know MsComCtl.OCX use RTF v1.0

as i say i have almost every native Control in DXE LIB,
my DXE_RTF use "Riched20.dll"

if you like i can send you the Source of Class DXE_RTF()

p.s. only 1 x Source of 1 Control per User
greetings by OHR
Jimmy

Post Reply