News:

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

New include file creation tool IMP2INC.EXE

Started by hutch--, October 09, 2010, 11:18:32 PM

Previous topic - Next topic

hutch--

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
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Vortex

Hi Hutch,

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