News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

user32.inc problem

Started by RuiLoureiro, June 15, 2012, 02:35:00 AM

Previous topic - Next topic

RuiLoureiro

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

It basically means that somewhere in one of your sources you have defined wsprintf yourself in a different way.

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

dedndave

perhaps the order in which you include the INC files will make a difference

RuiLoureiro

#3
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 !

Vortex

Quote from: RuiLoureiro on June 15, 2012, 03:36:53 AM
No, the problem is incorrect windows.inc

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

RuiLoureiro

No, i set it incorrectly,
no problems with windows.inc or others
everything ok !

MichaelW

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

Quote from: MichaelW 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.
I have this: masm32 SDK file version 11.0.0.0