Win32 island sample won't compile

(noman) #1

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.

Paul Breen

(SH) #2

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

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

(noman) #3

Tadah! Works like a champ.

(SH) #4

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:

(marc hoffman) #5

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

(noman) #6

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

(noman) #7

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

(SH) #8

So it doesnt work anymore?

(noman) #9

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.

(marc hoffman) #10

glad to hear, thanx for confirming.