Hi friends,

undecor.exe is a tool to undecorate MS COFF object files. It operates like the following :

_ExitProcess@4 is converted to ExitProcess
_wsprintfA is converted to wsprintfA

This tool can be used to link object files with import libraries containing undecorated symbols.
This kind of import libraries can be created directly from DLLs with Pelle's polib or def2lib.

http://vortex.masmcode.com/files/undecor10.zip
Posted on 2007-01-14 13:18:31 by Vortex
Now, the tool can process also direct function calls used mostly by C compilers :

__imp__ExitProcess@4 is converted to __imp_ExitProcess
__imp__wsprintfA is converted to __imp_wsprintfA


http://www.vortex.masmcode.com/files/undecor11.zip

The updated zip file contains PellesC examples using the tool.
Posted on 2007-01-17 12:58:42 by Vortex
nice, but FASM "extrn as" feature comes handy:
extrn "__imp__MessageBoxA@16" as MessageBox
Posted on 2007-01-17 13:04:47 by vid
Hi vid,

Yes, Fasm's macro capabilities are very good. I am using the notation you mentioned in my lib2inc tool :

EXTERNDEF '_MessageBoxA@16',MessageBox


EXTERNDEF macro :

macro EXTERNDEF decorated_name,name
{
    if used name
    extrn decorated_name as name
    end if
}
Posted on 2007-01-18 11:52:57 by Vortex