Edit: Nevermind, I solved it
Trying to test this code created from
the zorro manual
#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:
>.
PruebaDllCall compiling..
Error in 'windows.h' line 6519:
syntax error
< RECT rcPaint;
>.
In windows.h inside include folder I found this in line 6519
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
typedef struct _RECTL{
long Left;
long Top;
long Right;
long Bottom;
}RECTL;
So I changed it to RECTL and then it gives this error
Error in 'windows.h' line 6550:
syntax error
< DWORD LowPart;
>.
Time 00:00:00
In windows.h in line 6550 there is:
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