News:

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

lib2inc

Started by zcoder, July 15, 2006, 07:16:32 PM

Previous topic - Next topic

zcoder

Ok, I added code to discard exported API's (api's found in other dll's)
and enabled wild cards, and fixed the echo switch ect.
I have tested it on all the libs found in masm32\lib and it worked great.

Zcoder....
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

zooba

Very nice :U Were they sorting before or is that new?

Except it seems to not be finding C calling convention procedures. Also, there's about 50 characters of garbage (possibly nulls?) at the end which show up in QEditor.

Cheers,

Zooba :U

zooba

Also, to access the ENV block, check out ExpandEnvironmentStrings. In general though, I think you're best to look in the current directory or let the user specify a full path. AFAIK, most compilers will specify a full path.

Cheers,

Zooba :U

zcoder

Ok, I have updated lib2inc here is the changes.


        (1.) added wildcard opions.
        (2.) fixed echo off switch.
        (3.) discarded exported api's
        (4.) cleaned up garbage left at end of inc file.
        (5.) added LFN in quotes for both input and output.
        (6.) smoked a carton of sig's and drank on pint of jack to clear my head.


I ran it on the libs in \masm32\lib and it worked on all the libs
I used this command line:
LIB2INC c:\masm32\lib\*.lib /e

Notice I did not provide a output path, this way all the inc files where put into the same directory
as the LIB2INC exe file, for safe testing.

Other wise I could have used: LIB2INC c:\masm32\lib\*.lib /e c:\masm32\include\*.inc

Zcoder....
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

zcoder

Ok, the new update now has everything I planed working.
But it still needs testing to make sure it is stable.
all the above has been modified plus.


And Thanks PBrennick, Mark Jones,Zooba, for the feed back on very good
pointers and ideas and for catching errors so far.
The help has been more then GREAT.
Zcoder....
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

zcoder

Ok, I almost forgot to add the "AddFontResource    equ   <AddFontResourceA>"

Now it works and a app can be compiled using the inc files that lib2inc produces.
I will fix any bugs as time goes on. wich I am sure there are, just have to find the right
lib or the right commandline that would couse it to messup.


Zcoder....

Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names