The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: hutch-- on October 09, 2010, 11:18:32 PM

Title: New include file creation tool IMP2INC.EXE
Post by: hutch-- on October 09, 2010, 11:18:32 PM
With thanks to Ramon Sala for his suggestions, assistance and support I have a new tool for creating the masm32 include files that support using an equate to specify unicode.

The existing system works correctly with these files in that the ANSI prototypes work by default, unicode names spelt out by their full API name work as before but the new versions will respond to an equate "__UNICODE__" and will set the correct equates for the API name to unicode.

Now note that this capacity is still in development, the include files have been reasonably well tested and appear to be working correctly but there is not yet additional support for them and there are no examples using them yet. This stuff will come over time. Note also that the target for this tool is Microsoft COFF IMPORT libraries and it is not designed to work on any other lib format.

The include files work like this,


AddFontResourceA PROTO STDCALL :DWORD
IFNDEF __UNICODE__
  AddFontResource equ <AddFontResourceA>
ENDIF

AddFontResourceExA PROTO STDCALL :DWORD,:DWORD,:DWORD
IFNDEF __UNICODE__
  AddFontResourceEx equ <AddFontResourceExA>
ENDIF

AddFontResourceExW PROTO STDCALL :DWORD,:DWORD,:DWORD
IFDEF __UNICODE__
  AddFontResourceEx equ <AddFontResourceExW>
ENDIF

AddFontResourceW PROTO STDCALL :DWORD
IFDEF __UNICODE__
  AddFontResource equ <AddFontResourceW>
ENDIF
Title: Re: New include file creation tool IMP2INC.EXE
Post by: Vortex on October 10, 2010, 08:44:25 AM
Hi Hutch,

Thanks for this new tool. A quick test shows that it can convert masm32, Pelles and GeneSys import libraries.