user32.dll does have a function called wsprintfW, and it's prototyped in windows.inc, but it seems to be missing from the symbol library user32.lib. Or maybe it's in the newer MASM32 release? TIA. For the moment I'm using wvsprintfW instead (porting a C program).
This function is prototyped in the latest Masm32 package V10, user32.inc :
IFNDEF USER32_INC
USER32_INC equ <1>
IFNDEF _wininc_
wsprintfA PROTO C :VARARG
wsprintf equ <wsprintfA>
wsprintfW PROTO C :VARARG
ENDIF
wsprintfW is missing from the MASM32 v9 user32 import library (dated March 11, 2006), but present in the MASM32 v10 user32 import library (dated September 07, 2008).
:U
upgrade user32.inc and user32.lib to newer versionafter modify 'C:\MASM32\Include\user32.inc' file:
delete 'C:\MASM32\Lib\user32.lib'
cd 'C:\MASM32\Include'
inc2l.exe user32.inc
move 'C:\MASM32\Include\user32.lib' to 'C:\MASM32\Lib'
:dazzled:
C:\MASM32\Include\bldlibs.bat@echo off
rem ...
inc2l.exe resource.h
rem ...
inc2l.exe inc2l.exe
rem ...
inc2l.exe bldlibs.bat
rem ...
is these bugs?
I brought in the new user32.lib and it works fine now. Thx all.
masm32v8
c:\masm32\include\user32.inc:wsprintfA PROTO c :dword,:vararg
wsprintf equ <wsprintfA>
masm32v8my
c:\masm32\include\user32.inc:wsprintfA PROTO c :vararg
wsprintf equ <wsprintfA>
wsprintfW PROTO c :vararg
:bg
The current version is 10.