News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

error in the windows.inc

Started by ragdog, July 12, 2007, 04:41:14 PM

Previous topic - Next topic

ragdog

@ 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

MichaelW

Yep, in Version 1.30 Release 7 March 2006 I find 15 instances of "0x".
eschew obfuscation

hutch--

Thanks, I will be working on WINDOWS.INC very soon so these and any others like missing equates will be very useful.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

hutch--

Try this, I have removed the "0x" I can find and used the ciorrect ASM notation with the trailing "h".

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

raymond

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
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php