Support Forums > WinFBX - Windows Framework for FreeBASIC

Error in CXpButton.inc

(1/1)

Joerg Buckel:
Hello Josť
I am currently using the Freebasic compiler in version 1.09.0 from 29.10.2021.
When I work with the compiler I get the following errors in the module CXpButton.inc.
I don't know if any calls have changed in version 1.09.0.
In version 1.09.0 at the beginning of October this error abort did not exist yet.
I assume that other modules are also affected.


--- Quote ---FreeBASIC Compiler - Version 1.09.0 (2021-10-29), built for win32 (32bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
target:       win32, 686, 32bit
backend:      gcc
compiling:    A:\Programmierung\WinFBE_Suite\Eigene Programme\Gasbedarf Rechner\Source\WinFBE_VD_MAIN.bas -o A:\Programmierung\WinFBE_Suite\Eigene Programme\Gasbedarf Rechner\Source\WinFBE_VD_MAIN.c (main module)
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(357) warning 3(2): Passing different pointer types, at parameter 2 of GETWINDOWRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(358) warning 3(2): Passing different pointer types, at parameter 1 of GETCURSORPOS()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(359) warning 3(2): Passing different pointer types, at parameter 1 of PTINRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(359) error 58: Type mismatch, at parameter 2 of PTINRECT() in 'IF .PtInRect(@rc, pt) THEN'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(380) warning 3(2): Passing different pointer types, at parameter 2 of GETWINDOWRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(381) warning 3(2): Passing different pointer types, at parameter 1 of GETCURSORPOS()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(386) warning 3(2): Passing different pointer types, at parameter 1 of PTINRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(386) error 58: Type mismatch, at parameter 2 of PTINRECT() in 'IF .PtInRect(@rc, pt) THEN'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(920) warning 3(2): Passing different pointer types, at parameter 2 of GETCLIENTRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(926) warning 3(2): Passing different pointer types, at parameter 1 of INFLATERECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(928) warning 3(2): Passing different pointer types, at parameter 5 of DRAWTHEMEBACKGROUND()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(930) warning 3(2): Passing different pointer types, at parameter 5 of GETTHEMEBACKGROUNDCONTENTRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(930) warning 3(2): Passing different pointer types, at parameter 6 of GETTHEMEBACKGROUNDCONTENTRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(936) warning 3(2): Passing different pointer types, at parameter 2 of FRAMERECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(938) warning 3(2): Passing different pointer types, at parameter 1 of INFLATERECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(942) warning 3(2): Passing different pointer types, at parameter 2 of DRAWEDGE()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(945) warning 3(2): Passing different pointer types, at parameter 2 of DRAWEDGE()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(947) warning 3(2): Passing different pointer types, at parameter 2 of DRAWEDGE()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(951) warning 3(2): Passing different pointer types, at parameter 2 of FILLRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(953) warning 3(2): Passing different pointer types, at parameter 2 of FRAMERECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(958) warning 3(2): Passing different pointer types, at parameter 2 of DRAWFRAMECONTROL()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(963) warning 3(2): Passing different pointer types, at parameter 1 of INFLATERECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(964) warning 3(2): Passing different pointer types, at parameter 2 of FILLRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(967) warning 3(2): Passing different pointer types, at parameter 1 of INFLATERECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(968) warning 3(2): Passing different pointer types, at parameter 2 of FILLRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(970) warning 3(2): Passing different pointer types, at parameter 2 of FILLRECT()
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(978) error 18: Element not defined, Bottom in 'iy = ((rcContent.Bottom - rcContent.Top - m_ImageHeight) \ 2) + rcContent.Top'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(980) error 9: Expected expression, found '-' in 'iy = rcContent.Bottom - m_ImageHeight'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(982) error 9: Expected expression in 'iy = rcContent.Top'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(987) error 18: Element not defined, Right in 'ix = rcContent.Right - (m_ImageMargin * m_rx) - m_ImageWidth'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(989) error 18: Element not defined, Left in 'ix = rcContent.Left + (m_ImageMargin * m_rx)'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(991) error 9: Expected expression, found '-' in 'ix = ((rcClient.Right - rcClient.Left) \ 2) - (m_ImageWidth \ 2)'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(993) error 9: Expected expression, found '+' in 'ix = rcContent.Left + (m_ImageMargin * m_rx)'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(1021) error 3: Expected End-of-Line, found '=' in 'rcContent.Left = rcContent.Left + (m_TextMargin * m_rx)'
A:\Programmierung\WinFBE_Suite\FreeBASIC-1.09.0-gcc-12\inc\Afx\CXpButton.inc(1021) error 133: Too many errors, exiting
--- End quote ---

Josť Roca:
Apparently they have a mess with the RECT structure and a RECT class.
See: https://www.freebasic.net/forum/viewtopic.php?f=17&t=29432&p=285890&hilit=rect#p285890

Joerg Buckel:
Hello Josť
Thank you for the information.

I have now read the posts on your link. It seems to be a bigger problem.Then I guess we will wait until then for the fix.

I will use one of the working versions until then.

Navigation

[0] Message Index

Go to full version