just a small question.
im using masm32 package from Iczelion
i compile some source file in masm32 and it adds a wsprintfA api to the exectuable. wtf is up with that ?

Heres another question, im getting padded with an int3 at the end of my code section without personally putting it there. this is also something to do with the wsprintfA. here is the code:

.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
.code
start:
ret
end start

if you replace any include file, or take one out, it wont work.
also if you leave an empty code section it wont work.
like this or with more code and includes, should leave you with a cc at the end of your code section, and a call to wsprintfA which hutch already explained below.
Posted on 2004-10-05 02:32:37 by pwn
hi pwn
please include the source u are trying to compile.
it ll be easier to explain ur querry.
thank you
nickdigital
Posted on 2004-10-05 02:42:46 by nickdigital
for god sakes nickdigital i lost the sourcecode can we go on without it thx.
Posted on 2004-10-05 03:41:19 by pwn
2 things, MASM32 uses a Microsoft ASSEMBLER, its not a compiler.

The wsprintfA is a leftover from having the API prototyped twice in the include files. If you already have the libraries you want to use, comment out the prototype in the WINDOWS.INC file and you won't get the unused entry.

Alternatively create a set of include files using the L2EXTIA utility which are a different type of prototype and there is no lookup table used for API addresses.
Posted on 2004-10-05 03:48:05 by hutch--
for god sakes if you dont know anything dont just post useless shit thx.


If you don't know anything about manners and general netiquette, don't post on this forum, ok?

nickdigital just wanted to help. Some people...
Posted on 2004-10-05 04:18:15 by Hiroshimator
Location: Israel

haha, jew with bad manners.
Posted on 2004-10-05 11:47:04 by Drocon
just replying to myself here..

comment out these 2 lines in windows.inc and all is good. thank you, god bless.
; wsprintfA PROTO C :DWORD,:VARARG
; wsprintf equ <wsprintfA>

p.s. drocon: jews own you
Posted on 2004-10-05 12:44:46 by pwn
that goes for you too drocon :roll:

Nationality or applied religion doesn't matter, treat each other with respect, ok?
Posted on 2004-10-06 04:38:08 by Hiroshimator