Author Topic: Windows.inc errors  (Read 11670 times)

RuiLoureiro

  • Member
  • ****
  • Posts: 819
Windows.inc errors
« on: June 26, 2012, 08:49:13 PM »
I wrote a prog. that does nothing
but it doesnt assemble
How to solve this problem ?

Quote
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

 Assembling: C:\masm32\...\TestMath10.asm

***********
ASCII build
***********

\masm32\include\windows.inc(78) : error A2119: language type must be specified
\masm32\include\windows.inc(79) : error A2119: language type must be specified
\masm32\include\windows.inc(80) : error A2119: language type must be specified
\masm32\include\windows.inc(81) : error A2119: language type must be specified
\masm32\include\windows.inc(82) : error A2119: language type must be specified
\masm32\include\windows.inc(83) : error A2119: language type must be specified
\masm32\include\windows.inc(84) : error A2119: language type must be specified
\masm32\include\windows.inc(85) : error A2119: language type must be specified
\masm32\include\windows.inc(86) : error A2119: language type must be specified
\masm32\include\windows.inc(87) : error A2119: language type must be specified
\masm32\include\windows.inc(88) : error A2119: language type must be specified
\masm32\include\windows.inc(89) : error A2119: language type must be specified
\masm32\include\windows.inc(90) : error A2119: language type must be specified
\masm32\include\windows.inc(91) : error A2119: language type must be specified
\masm32\include\windows.inc(92) : error A2119: language type must be specified
\masm32\include\windows.inc(93) : error A2119: language type must be specified
\masm32\include\windows.inc(94) : error A2119: language type must be specified
\masm32\include\windows.inc(95) : error A2119: language type must be specified
\masm32\include\windows.inc(96) : error A2119: language type must be specified
\masm32\include\windows.inc(97) : error A2119: language type must be specified
\masm32\include\windows.inc(98) : error A2119: language type must be specified
\masm32\include\windows.inc(99) : error A2119: language type must be specified
\masm32\include\windows.inc(100) : error A2119: language type must be specified
\masm32\include\windows.inc(101) : error A2119: language type must be specified
\masm32\include\windows.inc(102) : error A2119: language type must be specified
\masm32\include\windows.inc(156) : error A2004: symbol type conflict : bool
\masm32\include\windows.inc(7835) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(7835) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9045) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9045) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9058) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9058) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9070) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9070) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9075) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9075) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9080) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9080) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9085) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9085) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9090) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9090) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9097) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9097) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9104) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9104) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9111) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9111) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9116) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9116) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9122) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9122) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9130) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9130) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9131) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9131) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9135) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9135) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9141) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9141) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9148) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9148) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9155) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9155) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9160) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9160) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9168) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9168) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9175) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9175) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9183) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9183) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9190) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9190) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9200) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9200) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9201) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9201) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9205) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9205) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9206) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9206) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9211) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9211) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9217) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9217) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9224) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9224) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9231) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9231) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9237) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9237) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9248) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9248) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9256) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9256) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9267) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9267) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9279) : error A2179: structure improperly initialize
d
\masm32\include\windows.inc(9279) : error A2008: syntax error : in structure
\masm32\include\windows.inc(9287) : fatal error A1012: error count exceeds 100;
stopping assembly
_
Assembly Error
;*********************************************+
Code: [Select]
; File:     TestMath10.asm
; by:       RuiLoureiro
; ----------------------------------------

      include   \masm32\include\windows.inc

      include    \masm32\macros\macros.asm      ; masm32 macro file
      include    \masm32\include\masm32.inc     ; masm32 library include
     
      include \masm32\include\user32.inc
      include \masm32\include\kernel32.inc
      include \masm32\include\gdi32.inc
     
      include \masm32\include\comdlg32.inc
      include \masm32\include\comctl32.inc

      include \masm32\include\winspool.inc         
      include \masm32\include\winmm.inc         

      includelib \masm32\lib\user32.lib
      includelib \masm32\lib\kernel32.lib
      includelib \masm32\lib\gdi32.lib

      includelib \masm32\lib\comdlg32.lib
      includelib \masm32\lib\comctl32.lib

      includelib \masm32\lib\winspool.lib
      includelib \masm32\lib\winmm.lib                ; som
     
      includelib \masm32\lib\masm32.lib         ; masm32 static library

WndProc     proto   :DWORD,:DWORD,:DWORD,:DWORD
Compute     proto   :DWORD

IDC_Out1     equ 5010
IDC_Out2     equ 5020
IDC_Out3     equ 5030
IDC_Out4     equ 5040
IDC_Out5     equ 5050

IDC_Compute  equ 500
IDC_Close    equ 501

;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.data

    hInstance   dd ?
    hDlg        dd ?
    _hHook1     dd ?
   
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.code
start:

    invoke      GetModuleHandle, 0
    mov         hInstance, eax
    invoke      InitCommonControls

    invoke      DialogBoxParam,hInstance,500,0,ADDR WndProc,0

    invoke      ExitProcess,eax
; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

WndProc proc    hWnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD
         
        SWITCH  uMsg
        CASE    WM_INITDIALOG

            push  hWnd
            pop   hDlg
                           
        CASE    WM_CLOSE
               
_Quit:  invoke   EndDialog, hWnd, 0

_Exit:  mov     eax, TRUE
  ret
        CASE    WM_COMMAND

            switch  wParam
            case    IDC_Compute

                invoke  Compute, hWnd
                   
            case    IDC_Close

                jmp     _Quit
            endsw

        ENDSW

_fim:   mov     eax, FALSE
  ret
WndProc endp
; «««««««««««««««««««««««««««««««««««««««««««««««««
Compute         proc        hWnd:DWORD

                ret
Compute         endp               
;..................................................
end   start   
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: Windows.inc errors
« Reply #1 on: June 26, 2012, 10:36:42 PM »
at the beginning of the source file:
Code: [Select]
        .586
        .MODEL  Flat,StdCall
        OPTION  CaseMap:None
then all the includes

the "language", in this case, is StdCall, i guess   :P

you may want to use SSE instructions:
Code: [Select]
        .686
        .MMX
        .XMM
        .MODEL  Flat,StdCall
        OPTION  CaseMap:None

RuiLoureiro

  • Member
  • ****
  • Posts: 819
Re: Windows.inc errors
« Reply #2 on: June 26, 2012, 10:48:25 PM »
Yes it is, many thanks Dave ! :t

CortezTod

  • Regular Member
  • *
  • Posts: 2
Re: Windows.inc errors
« Reply #3 on: March 13, 2017, 06:08:23 PM »
It was something new for me.