Polar Clock

Post your FreeBASIC source, examples, tips and tricks here. Please don’t post code without including an explanation.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Polar Clock

Post by MrSwiss »

You are probably using FBC 32-bit (I'm using the 64-bit Version), so the problem
might be, in the Windows-Headers (Type not defined).

OK, found it: it has been renamed to: PointF_ (in the Header: gdiplus-c.bi)

For compatibility (32/64):

Code: Select all

#Ifdef __FB_64BIT__
    Dim As PointF_  StartPoint, EndPoint
#Else
    Dim As PointF   StartPoint, EndPoint
#EndIf
Josep Roca
Posts: 564
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

Re: Polar Clock

Post by Josep Roca »

Better use GpPointF, GpRectF, etc., and it will work with both 32/64 bits.
UEZ
Posts: 988
Joined: May 05, 2017 19:59
Location: Germany

Re: Polar Clock

Post by UEZ »

Josep Roca wrote:Better use GpPointF, GpRectF, etc., and it will work with both 32/64 bits.
Totally forgot the Gp* structures - should have more often look to your WinFBX lib. ;-)

Code updated again.

I personally don't use 64-bit for such kind of code which has no loops within main loop because there is no real benefit for running it in 64-bit mode.
UEZ
Posts: 988
Joined: May 05, 2017 19:59
Location: Germany

Re: Polar Clock

Post by UEZ »

Added Polar Clock v1.3 -> added a hole to each arc (head side). Look here: viewtopic.php?f=7&t=26390&p=243370#p243370

I think this will be the last update from me except you find a bug.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Polar Clock

Post by MrSwiss »

UEZ wrote:I think this will be the last update from me except you find a bug.
Sorry, but you seem to have posted (the fixed) ver. 1.2, again ... (no holes, etc.).
UEZ
Posts: 988
Joined: May 05, 2017 19:59
Location: Germany

Re: Polar Clock

Post by UEZ »

Ooops, sorry! Now v1.3 is uploaded.

Thanks MrSwiss :-)
nimdays
Posts: 236
Joined: May 29, 2014 22:01
Location: West Java, Indonesia

Re: Polar Clock

Post by nimdays »

Thanks to all Contributors.
GDI looks good.
Post Reply