May 08, 2024, 08:41:19 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


windows.inc

Started by srod, July 26, 2007, 06:06:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

srod

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.

Ionic Wind Support Team

Just change it in windows.inc.  It won't hurt anything and should be a pointer.

Paul
Ionic Wind Support Team

srod

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.