News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

wsprintfW missing from user32.lib

Started by Larry Hammick, December 03, 2009, 07:22:25 PM

Previous topic - Next topic

Larry Hammick

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).

Vortex

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

MichaelW

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).
eschew obfuscation

UtillMasm

 :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'

UtillMasm

 :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?

Larry Hammick

I brought in the new user32.lib and it works fine now. Thx all.

UtillMasm

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

hutch--

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php