The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: J0HN on November 24, 2005, 08:00:02 AM

Title: structure improperly intialized in windows.inc
Post by: J0HN on November 24, 2005, 08:00:02 AM
I'm new so this might be something stupid... but any program i attempt to build that includes windows.inc i get lots of syntax errors for structures, and ones saying structure improperly initialized. anyone know what i can do?
Title: Re: structure improperly intialized in windows.inc
Post by: sluggy on November 24, 2005, 08:28:10 AM
At what point in your source file are you including windows.inc?
Title: Re: structure improperly intialized in windows.inc
Post by: u on November 24, 2005, 11:05:57 AM
Hmm iirc, I had the same problem with masm8 (ml.exe, not the package), found the structures and made them masm8-compatible. But the version of masm8 I had was very buggy.
Title: Re: structure improperly intialized in windows.inc
Post by: MichaelW on November 24, 2005, 01:44:03 PM
The symptoms you describe could be caused by not including this line in the source above the point where windows.inc is included:

option casemap :none       ; case sensitive


The original Microsoft include files depend on case sensitivity. To pick one example from windows.inc to illustrate the problem:

LUID STRUCT
  LowPart   DWORD      ?
  HighPart  DWORD      ?
LUID ENDS
...
LUID_AND_ATTRIBUTES STRUCT
    Luid LUID <>
    Attributes dd ?
LUID_AND_ATTRIBUTES ENDS

Here the problem is that without case sensitivity "Luid" = "LUID".