ive run into the problem now that i need to use the SIZE struct for the first time. this is the structure that will be filled when i call TB_GETMAXSIZE. it seems to me that SIZE is a masm keyword. so to solve that i used the nokeyword option. i run into a problem when i define the struct though. i get an assembly error that cx is invalid syntax. when i comment out just that line of the structure i dont get errors from cy and the code compiles fine. here's the code i got so far.
option nokeyword: <SIZE>
SIZE STRUCT
cx LONG ?
cy LONG ?
SIZE ENDS
.data?
sz SIZE <?>
:) :) :)
cx is a register.
ecx is a register. cx is part of ecx.
In Win32Asm, the structure being used for SIZE is SIZEL:
SIZEL STRUCT
x DWORD ?
y DWORD ?
SIZEL ENDS
This neatly avoids problems with the reserved keywords cx and size.
PS:
(SIZEL is already defined in Windows.inc)
cx is a register.
ecx is a register. cx is part of ecx.
In Win32Asm, the structure being used for SIZE is SIZEL:
SIZEL STRUCT
x DWORD ?
y DWORD ?
SIZEL ENDS
This neatly avoids problems with the reserved keywords cx and size.
PS:
(SIZEL is already defined in Windows.inc)
hehe thanks. kinda lame i cant figure stuff out like this yet.
Ran into this problem as well, just yesterday. However, i searched my windows.inc and didnt find a "size" match in the file.
So i gave up and realized that POINT is the same structure, and used it...
:alright:
NaN
So i gave up and realized that POINT is the same structure, and used it...
:alright:
NaN