The MASM Forum Archive 2004 to 2012

Specialised Projects => Compiler Based Assembler => Pelle's C compiler and tools => Topic started by: Vortex on June 15, 2005, 06:09:03 PM

Title: Module definition file to MASM include file converter
Post by: Vortex on June 15, 2005, 06:09:03 PM
Here is my new tool coded with Pelle's C , def2inc V1.0

Quote
Definition file to MASM include file converter V1.0
def2inc converts a definition file created by Iczelion's lib2def tool to MASM include files containing function prototypes. The definition files ( .icz ) are created from Pelle's import libraries.Using Iczelion's lib2def tool supported by def2inc is a simple methode to create MASM include files from MS COFF import libraries.Notice that the tool should be at the same directory where the .icz definitions files are located. def2inc accepts wildcards like *.inc

To get information about lib2def :

http://spiff.tripnet.se/~iczelion/importlib.html


http://www.vortex.masmcode.com/files/def2inc10.zip
Title: Re: Definition file to MASM include file converter
Post by: Vortex on June 23, 2005, 06:39:22 PM
The function RtlZeroMemory was missing from kernel32.icz , I updated this file to contain RtlZeroMemory.
Title: Re: Definition file to MASM include file converter
Post by: Vortex on September 04, 2005, 09:56:38 AM
Now, def2inc is redesigned to process module definition files like the following :

LIBRARY kernel32
EXPORTS
"_ActivateActCtx@8"
"_AddAtomA@4"
"_AddAtomW@4"
etc.


http://vortex.masmcode.com/files/def2inc11.zip
Title: Re: Definition file to MASM include file converter
Post by: Vortex on June 28, 2006, 06:34:57 PM
Version 1.2

Some functions have also an ANSI version, the new swicth -d will display duplicate symbols :

def2inc user32.def

Duplicate name in user32.def , BroadcastSystemMessage
Duplicate name in user32.def , CallMsgFilter
Duplicate name in user32.def , GetAltTabInfo
Duplicate name in user32.def , GetWindowModuleFileName
Duplicate name in user32.def , IsDialogMessage
Duplicate name in user32.def , RealGetWindowClass
Duplicate name in user32.def , TranslateAccelerator


Only the ANSI version of those functions are passed to the final include file.

http://www.vortex.masmcode.com/files/def2inc12.zip
Title: Re: Definition file to MASM include file converter
Post by: Vortex on June 22, 2008, 06:12:11 PM
Version 2.0

- New version coded with Pelle's C development tools V5.0
- String handling tasks moved to assembly subroutines
- No any dependency on msvcrt.dll

def2inc is already used in the GeneSys project to create include files from module definition files. This version should be faster than V1.2

http://vortex.masmcode.com/files/def2inc20.zip

Title: Re: Definition file to MASM include file converter
Post by: Vortex on June 29, 2011, 11:59:19 AM
Version 2.1

- New version built with Pelles C Version 6.50.8 Release Candidate 4
- Support for Jwasm
- Some minor optimizations in the source code

http://vortex.masmcode.com/files/def2inc21.zip