flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
Raedwulf 21 Jul 2005, 18:48
FASM specific generator for includes ...please read readme.txt in the zip
Tell me what you think Ralph New updates: Version History ----------------- 1.0.0 - Initial Release 1.1.0 - Added progress bar, status bar - Cleaned up code - Exports files more than 64k - Remove dependency to SSubTmr6.dll - You can type in file names straight into the text box - Add sample - kernel32.inc which is imported by ordinal Next version: 1.2.0 - Generates parameter count of dlls (release date uncertain) - Rewritten in FASM Other the program is GUI...it accepts command line... Commandline: DLL2INC [-switch] [dllfile] [outputfile] Switches: -o ExportByOrdinal -n ExportByFunction (default) Downloads are separated (Binary and Source)
_________________ Raedwulf Last edited by Raedwulf on 22 Jul 2005, 18:36; edited 2 times in total |
|||||||||||||||||||||
![]() |
|
Reverend 21 Jul 2005, 22:15
Hey. I wrote such a thing in FASM sometime ago. Check this: http://board.flatassembler.net/topic.php?t=3229
|
|||
![]() |
|
Raedwulf 22 Jul 2005, 01:30
hehe back in march, i hadn't learnt any assembly at all yet
![]() Hmmm good prog...but I made some nice GUI this time hehe ![]() _________________ Raedwulf |
|||
![]() |
|
Vasilev Vjacheslav 22 Jul 2005, 06:26
Reverend, may i request a feature for you program?
![]() |
|||
![]() |
|
Raedwulf 22 Jul 2005, 10:46
My DLL2INC supports unicode and imports with ordinal too
![]() It also supports command line - read 'readme.txt' for info on the parameters. |
|||
![]() |
|
decard 22 Jul 2005, 12:34
For such purpose I was usually using similar program from Comrade's homepage (http://comrade64.cjb.net). I think Vortex has written similar program too... so there's quite a lot of dll2inc apps
![]() |
|||
![]() |
|
Vasilev Vjacheslav 22 Jul 2005, 13:40
Raedwulf, your program very huge, written in vb and use 3-d party libraries, this program not for me, sorry
|
|||
![]() |
|
Raedwulf 22 Jul 2005, 13:51
hehe ok...I'll rewrite it in fasm
![]() _________________ Raedwulf |
|||
![]() |
|
comrade 22 Jul 2005, 14:58
Code: -- ------------------------- DLL2INC.exe - Application Error --------------------------- The instruction at "0x66063fea" referenced memory at "0x00000014". The memory could not be "read". Click on OK to terminate the program Click on CANCEL to debug the program --------------------------- OK Cancel --------------------------- I couldn't run a debugger to give more information... something is screwed up on this system. |
|||
![]() |
|
comrade 22 Jul 2005, 15:00
Vasilev Vjacheslav, you can try my version of dll2inc tool with /U switch which will only output functions that end with "W" or do not end with "A" (e.g. CreateFileW -> CreateFile, GetCurrentProcess -> GetCurrentProcess).
http://comrade.ownz.com/sources/dll2inc.zip |
|||
![]() |
|
Raedwulf 22 Jul 2005, 15:08
comrade, I think you may have forgotten to press setup.bat
(This is for the last version) If you download the new version you don't have any setup.bat. Last edited by Raedwulf on 22 Jul 2005, 18:39; edited 1 time in total |
|||
![]() |
|
Raedwulf 22 Jul 2005, 18:38
Ok updated it again:)
![]() This time it doesn't use any third party libraries and runs straight as an exe file. Of course I can't stop vb6 bloating a exe but im sure 74.5k exe is not too bad. I will rewrite it in FASM when I learn enough and finish with another project I'm doing. |
|||
![]() |
|
comrade 22 Jul 2005, 19:18
Yes, indeed, I did forget to press the setup.bat button.
This tool is very nice, and is very similar to something I have already seen. ![]() |
|||
![]() |
|
Raedwulf 22 Jul 2005, 21:01
Hope you dowlnloaded the newer one ...it looks nicer and has some bug fixes
![]() ![]() I'm planning to add the feature to search at the function address and find the ret statement (the hex) and take the immediate value so i can find the parameter count. What do you think? |
|||
![]() |
|
Reverend 22 Jul 2005, 22:10
Vasilev Vjacheslav wrote: Reverend, may i request a feature for you program? Code: (...) CreateFile, 'CreateFileA',\ CreateFileW, 'CreateFileW'.\ (...) |
|||
![]() |
|
Raedwulf 23 Jul 2005, 04:46
That's what's comrade's command line tool does...maybe you could do -a for ansi, -w for unicode and -a -w for both
![]() I'll be adding that to mine shortly. _________________ Raedwulf |
|||
![]() |
|
Vasilev Vjacheslav 23 Jul 2005, 07:28
comrade, ok, thanks
Reverend, yes, something as comrade mentioned, but your idea is also good |
|||
![]() |
|
Reverend 26 Jul 2005, 20:48
Vasilev Vjacheslav: http://board.flatassembler.net/topic.php?t=3229 Uploaded there new version with enhancements as you requested. Now '-a' will output only ANSI, '-w' will output only Unicode, '-aw' or '-wa' will output both. Also when choosing mode with ANSI or Unicode only (not both) the name is generated without suffix, ie.:
Code: apiresolve -a kernel32.dll invoke SetWindowText, [hwnd], text ; fasm will output in import table 'SetWindowTextA' apiresolve -w kernel32.dll invoke SetWindowText, [hwnd], text ; fasm will output in import table 'SetWindowTextW' apiresolve -aw kernel32.dll invoke SetWindowText, [hwnd], text ; fasm will generate an error 'Unknown name' (or something like ; that The only fact that isn't good all about it, that the program doesn't output 100% correctly. For example in kernel32.dll there are such APIs:
Code: (...) lstrlen,'lstrlenA',\ lstrlen,'lstrlen',\ (...) Also when building include file from 'ntdll.dll' there's names reserved in FASM eg. 'fcos'. These are also to fix manually by every programmer. Sorry, but there would be hell a lot of work with avoiding these two situatons, but they can be easily fixed even by beginner so I don't see a point why I should check it in program Next thing, I may also add some switch to output imports as ordinals, but anybody will ever use it? Maybe only in 4K intros with ogl, but I assume that 4k coders won't have regular import table at all ![]() EDIT: btw. dlls are windows specific, so why is this thread in main? |
|||
![]() |
|
Raedwulf 27 Jul 2005, 06:51
Quote: EDIT: btw. dlls are windows specific, so why is this thread in main? Oops ![]() _________________ Raedwulf |
|||
![]() |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.