flat assembler
Message board for the users of flat assembler.

Index > Windows > need special lib2inc

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
hi, i would need some lib2inc utility that can convert lib files (kernel32.lib etc) to format like this:

Code:
win_proc ExitProcess, 'ExitProcess', 4
win_proc MessageBoxA, 'MessageBoxA', 16
    

This will allow to use same include file for many purposes (PE DLL imports, COFF extrns, automatic switching between using __imp__Function and _Function, parameter count checking, etc. etc.) just by changing "win_proc" macro slightly.

second argument may not be needed, because it can be found with ` operator, but it may be handy for removing extra "_" from name in source, or something other in future maybe.

If procedure is VARARGS (no "@size" decoration), it should produce something like this:
Code:
win_proc wsprintf, 'wsprintf'     


It would be really helpful. I am playing with preparing simple FASM package for 32bit windoze programming with many macro features, and this is thing i really miss.
Post 14 Mar 2007, 15:56
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan
Vid, have a look at Vortex' work

_________________
Any offers?
Post 14 Mar 2007, 16:23
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
thanks. i've seen it, but still it gives different output than i need. I am mailing him for sources right now, so i can modify it.
Post 14 Mar 2007, 16:48
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.