Win32 island sample won't compile

Simple fix?
this error for line 44.
lWindowClass.hbrBackground := ^Void(COLOR_WINDOW + 1);

Severity Code Description Project File Line Suppression State
Error (E62) Type mismatch, cannot assign “^Void” to “^struct_HBRUSH” BasicWindowsApp C:\Users\Public\Documents\RemObjects Samples\RemObjects Oxygene for Island\GUI\Basic Windows GUI App\Program.pas 44

no island tag, so I put this in oxygene.

thanks,
Paul Breen

I am not a RO guy, but you should do IMO:

lWindowClass.hbrBackground := ^HBRUSH__(COLOR_WINDOW + 1)

Tadah! Works like a champ.
thanks.

1 Like

Glad to hear :slight_smile:

I know by myself, the Win32 Api is not something, which you would dream of as a User of it :smiley:

what build are you on, 2265? if so i believe this is already fixed for vNext.

RemObjects Elements 10.0.0.2255
The signon screen says I am up to date.

actually the sign on screen no longer says that. I’ll try the 2275 with water tomorrow.

1 Like

So it doesnt work anymore?

I installed 2275 this morning and the fix you suggested was in. Works fine. You don’t have to make any edits to make it work.

1 Like

glad to hear, thanx for confirming.