Edit: Nevermind, I solved it

Trying to test this code created from the zorro manual
Code:
#include <windows.h>
long WINAPI MessageBox(HWND,char *,char *,long);

int main()
{
    long h = LoadLibrary("user32");
    MessageBox = GetProcAddress(h,"MessageBoxA");
    if (MessageBox)			
        (*MessageBox)(NULL,"this is a test","test");
    return 0;
}



It gives this error:

Quote:
>.

PruebaDllCall compiling..
Error in 'windows.h' line 6519:
syntax error
< RECT rcPaint;
>.


In windows.h inside include folder I found this in line 6519

Code:
typedef struct _PAINTSTRUCT{
	long         hdc;
	long         fErase;
	RECT        rcPaint;
	long         fRestore;
	long         fIncUpdate;
	char         rgbReserved[32];
}PAINTSTRUCT;



And there isn't any RECT type, there is RECTL type in line 6462

Code:
typedef struct _RECTL{
	long         Left;
	long         Top;
	long         Right;
	long         Bottom;
}RECTL;



So I changed it to RECTL and then it gives this error

Quote:

Error in 'windows.h' line 6550:
syntax error
< DWORD LowPart;
>.
Time 00:00:00


In windows.h in line 6550 there is:

Code:
typedef struct _ULARGE_INTEGER
{
	DWORD LowPart;
	DWORD HighPart;
}ULARGE_INTEGER;



1) Is it ok to correct RECT for RECTL, ie there was a typo in the release?

2) How to solve the second error, the syntax error with DWORD, isn't it a type?

Thank you!

PS: This happens with Zorro 1.42 and 1.32

Last edited by Mithrandir77; 03/13/16 01:06.