PlanetSquires Forums

Support Forums => José Roca Software => Topic started by: hajubu on October 31, 2025, 05:13:07 PM

Title: GDI+ - SetBrushColor - GetBrushColor example - compile error
Post by: hajubu on October 31, 2025, 05:13:07 PM
Hi  Jose,
just stumpeld over a compile error :: undefined reference to `AFXNOVA::CGPGRAPHICS::SCALETRANSFORMFORDPI(int) with both files

Did I miss something for the just dowloaded  AfxNova-main 2025-10-31 20:11:47 (MEZ)
with the internal time : 2025-10-31 12:01:42 (GMT-7)
 my gdiplus.dll  - 2025-10-28 (win_11_Pro_DE) 10_0_26100_7019 w. 1.933.312 bytes

Thanks for reply in advance

Title: Re: GDI+ - SetBrushColor - GetBrushColor example - compile error
Post by: José Roca on October 31, 2025, 06:01:05 PM
Apparently I forgot to update CGpGraphics.inc in the repository. Download the one that I have just reuploaded.

I'm currently updating the documentation and adding new examples. This leads to changes, like adding new overloaded methods. ScarleWorldTransformForDpi and SetResolutionForDpi are two recent additions that simplify making GDI+ DPI aware.

Sorry for the inconvenience, but the GDI+ classes are a work in progress. I have needed to write my own headers because the ones provided with the FreeBasic compiler are a very big mess.
Title: Re: GDI+ - SetBrushColor - GetBrushColor example - compile error
Post by: hajubu on October 31, 2025, 06:31:23 PM
hi, - don't worry - no problem -

and thanks s lot again for your hard work on this subject.

p.s. I try form time to time to follow up .
I kown that all is a beta and in the flow  an such glitches can happen.

but I'm sorry that the new version uploaded causes other errors now :

... inc\AfxNova\CGpGraphics.inc(1089) error 158: Declaration outside the original namespace or class in 'BYVAL srcrect AS GpRectF PTR, BYVAL srcUnit AS GpUnit) AS GpStatus'
... inc\AfxNova\CGpGraphics.inc(1090) error 214: Member isn't static, before 'GdipDrawImagePointRect' in 'RETURN SetStatus(GdipDrawImagePointRect(m_pGraphics, pImage->m_pImage, x, y, srcrect->x, srcrect->y, srcrect->Width, srcrect->Height, srcUnit))'
... inc\AfxNova\CGpGraphics.inc(1095) error 158: Declaration outside the original namespace or class in 'BYVAL srcrect AS GpRect PTR, BYVAL srcUnit AS GpUnit) AS GpStatus'
... inc\AfxNova\CGpGraphics.inc(1096) error 214: Member isn't static, before 'GdipDrawImagePointRectI' in 'RETURN SetStatus(GdipDrawImagePointRectI(m_pGraphics, pImage->m_pImage, x, y, srcrect->x, srcrect->y, srcrect->width, srcrect->height, srcUnit))'
Title: Re: GDI+ - SetBrushColor - GetBrushColor example - compile error
Post by: José Roca on October 31, 2025, 06:54:59 PM
Must be out of sync. I will have to reupload all the include files.
Title: Re: GDI+ - SetBrushColor - GetBrushColor example - compile error
Post by: hajubu on November 01, 2025, 08:27:36 AM
hi, just let you know -
now it works fine with the upload (afxNova ,internal-zip 2025-10-31 22:51 (GMT-7) )

( Gdi+  Set/Get BruschColor , and also no more compilererror and/or crash )

Thanks
Title: Re: GDI+ - SetBrushColor - GetBrushColor example - compile error
Post by: José Roca on November 01, 2025, 04:08:07 PM
Thanks very much for trying. I'm in the process of adding new examples to test all the methods and this leads to some changes. If you forget to upload the file or files changed they're out of sync and causes these errors. GDI+ with about 600 functions is very huge.