Page 1 of 2

Error in XbpToolbar

Posted: Thu Oct 12, 2023 1:15 am
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

Re: Error in XbpToolbar

Posted: Thu Oct 12, 2023 5:16 am
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

Re: Error in XbpToolbar

Posted: Fri Oct 13, 2023 4:14 am
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

Re: Error in XbpToolbar

Posted: Sat Oct 14, 2023 12:50 pm
by Piotr D
Yes, Jimmy,
as you see, most people use XbpToolbar class, which is from XbpActiveXControl superclass.

Regards
Piotr

Re: Error in XbpToolbar

Posted: Sat Oct 14, 2023 2:15 pm
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

Re: Error in XbpToolbar

Posted: Sun Oct 15, 2023 6:11 am
by rdonnay
Anyone who is using eXpress++ had had DCTOOLBAR and DCSTATUSBAR for about 20 years now and this is all Xbase++ code.

Re: Error in XbpToolbar

Posted: Mon Oct 16, 2023 1:24 am
by Piotr D
But MsComCtrl.OCX is still needed to use with XbpRtf() (also DCRTF).

Re: Error in XbpToolbar

Posted: Mon Oct 16, 2023 5:24 am
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.

Re: Error in XbpToolbar

Posted: Mon Oct 16, 2023 5:28 am
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.

Re: Error in XbpToolbar

Posted: Mon Oct 16, 2023 6:14 am
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