Author Topic: user32.inc problem  (Read 10110 times)

RuiLoureiro

  • Member
  • ****
  • Posts: 820
user32.inc problem
« on: June 15, 2012, 02:35:00 AM »
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

 Assembling: C:\masm32\calcula_50\Calcula50.asm
\masm32\include\user32.inc(1813) : error A2111: conflicting parameter definition

_
Assembly Error
Prima qualquer tecla para continuar . . .
;------------------------------------------------------
wsprintfA PROTO C :VARARG       ««««««««««« line 1813
IFNDEF __UNICODE__
  wsprintf equ <wsprintfA>
ENDIF
             Why this ?
             How to solve this ?

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: user32.inc problem
« Reply #1 on: June 15, 2012, 02:53:59 AM »
It basically means that somewhere in one of your sources you have defined wsprintf yourself in a different way.

Code: [Select]
__UNICODE__=1
include \masm32\include\masm32rt.inc
.code
start:
print "bye"
exit
invoke wsprintf,eax,eax,eax ; assembles fine
end start

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: user32.inc problem
« Reply #2 on: June 15, 2012, 03:04:34 AM »
perhaps the order in which you include the INC files will make a difference

RuiLoureiro

  • Member
  • ****
  • Posts: 820
Re: user32.inc problem
« Reply #3 on: June 15, 2012, 03:36:53 AM »
Thanks Jochen and Dave
                  No, the problem is incorrect windows.inc
                  It is solved !
                  This problem happened because today i installed
                   masm32 v10. Now i am working with quick editor 4.0

                  Meanwhile i got 6 trojan horses after installation.
                  and when i opened qeditor.exe now
                  i got: static analysis finds the file suspicious (file=qeditor.exe)
                  but at the end nothing wrong !
« Last Edit: June 15, 2012, 05:55:22 AM by RuiLoureiro »

Vortex

  • Member
  • *****
  • Posts: 2794
Re: user32.inc problem
« Reply #4 on: June 15, 2012, 06:09:30 AM »
No, the problem is incorrect windows.inc

What makes you think that windows.inc is not correct?

RuiLoureiro

  • Member
  • ****
  • Posts: 820
Re: user32.inc problem
« Reply #5 on: June 15, 2012, 06:58:27 AM »
No, i set it incorrectly,
no problems with windows.inc or others
everything ok !

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1196
Re: user32.inc problem
« Reply #6 on: June 15, 2012, 05:24:29 PM »
Rui,

The line 1813 indicates that you are using the MASM32 v11. For the MASM32 v10 user32.inc the wsprintf protos start on line 9.
Well Microsoft, here’s another nice mess you’ve gotten us into.

RuiLoureiro

  • Member
  • ****
  • Posts: 820
Re: user32.inc problem
« Reply #7 on: June 16, 2012, 12:22:26 AM »
Rui,

The line 1813 indicates that you are using the MASM32 v11. For the MASM32 v10 user32.inc the wsprintf protos start on line 9.
I have this: masm32 SDK file version 11.0.0.0