The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => WINDOWS.INC Project => Topic started by: ragdog on July 12, 2007, 04:41:14 PM

Title: error in the windows.inc
Post by: ragdog on July 12, 2007, 04:41:14 PM
@ hutch

i experiment with imagelist and found a error in the windows.inc

your items works not an give me a error if i compile my project

A2206: missing operator in expression


BCM_GETIDEALSIZE                  equ (BCM_FIRST + 0x0001)
BCM_SETIMAGELIST                  equ (BCM_FIRST + 0x0002)
BCM_GETIMAGELIST                  equ (BCM_FIRST + 0x0003)
BCM_SETTEXTMARGIN               equ (BCM_FIRST + 0x0004)
BCM_GETTEXTMARGIN               equ (BCM_FIRST + 0x0005)

i have change to:

BCM_GETIDEALSIZE                   equ (BCM_FIRST + 01)
BCM_SETIMAGELIST                   equ (BCM_FIRST + 02)
BCM_GETIMAGELIST                   equ (BCM_FIRST + 03)
BCM_SETTEXTMARGIN                equ (BCM_FIRST + 04)
BCM_GETTEXTMARGIN                equ (BCM_FIRST + 05)

this works

greets ragdog
Title: Re: error in the windows.inc
Post by: MichaelW on July 13, 2007, 03:54:30 AM
Yep, in Version 1.30 Release 7 March 2006 I find 15 instances of "0x".
Title: Re: error in the windows.inc
Post by: hutch-- on July 13, 2007, 08:25:50 AM
Thanks, I will be working on WINDOWS.INC very soon so these and any others like missing equates will be very useful.
Title: Re: error in the windows.inc
Post by: hutch-- on July 13, 2007, 08:40:13 AM
Try this, I have removed the "0x" I can find and used the ciorrect ASM notation with the trailing "h".

[attachment deleted by admin]
Title: Re: error in the windows.inc
Post by: raymond on July 14, 2007, 01:42:33 AM
The WINDOWPOS structure description in the Win32 Programmer's Reference uses cx to specifies the window width, in pixels. The windows.inc lists it as lx. This can cause some frustration of a struct member not being recognized.

Raymond
Title: Re: error in the windows.inc
Post by: hutch-- on July 14, 2007, 03:12:49 AM
Ray,

there is  not a lot I can do about it, "cx" is a register. Many years ago befre the convention went in the direction of "_cx" I renamed it to "lx" so it would not conflict with the register.