IonicWind Software

IWBasic => General Questions => Topic started by: srod on July 26, 2007, 06:06:24 AM

Title: windows.inc
Post by: srod on July 26, 2007, 06:06:24 AM
Hi,

sorry if this has been covered before, but I just noticed that in the windows include file, InvalidateRect() is declared as

DECLARE IMPORT, _InvalidateRect ALIAS InvalidateRect(hwnd AS INT,lpRect AS WINRECT,bErase AS INT),INT


I can't get this to work and by my reckoning the lpRect parameter should be a pointer. At least that's how I've always used it in the past and indeed it works in this case if I switch the WINRECT for POINTER. Am I missing something (again!  ;D) ?

What I do not want to do is redeclare InvalidateRect() and then have it clash with windows.inc should I need to include the file in an application.
Title: Re: windows.inc
Post by: Ionic Wind Support Team on July 26, 2007, 06:10:06 AM
Just change it in windows.inc.  It won't hurt anything and should be a pointer.

Paul
Title: Re: windows.inc
Post by: srod on July 26, 2007, 06:21:28 AM
Aye, thanks.  Just wondering if it was me being daft again!

I'm really getting into EMBasic now; it's great stuff.  You've created a gem here Paul.