flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vortex
The tool dlltoinc produces lists of DLL function declarations to support Fasm MS COFF output
Code: dlltoinc dllname.dll [-w] optional -w : UNICODE An example result is an include file containing the following listing for kernel32.dll Code:
dlltoinc kernel32.dll
kernel32.inc :
extrndef ActivateActCtx
extrndefA AddAtom
extrndefA AddConsoleAlias
extrndefA AddLocalAlternateComputerName
extrndef AddRefActCtx
.
.
.
extrndef and extrndefA are two macros declaring external functions: Code: macro extrndef func { if used func extrn func : dword end if } macro extrndefA func { if used func extrn `func#'A' as func : dword end if } The include files produced by the tool are used to link Fasm MS COFF object files with Golink. You can check the attachment for an example.
_________________ Code it... That's all... |
|||||||||||
![]() |
|
Vortex
ShortCoder,
You are welcome. To process object files, GoLink requires only the name of the object file and the name of DLLs exporting the functions used in the source code: Code: golink filename.obj kernel32.dll user32.dll gdi32.dll _________________ Code it... That's all... |
|||
![]() |
|
Vortex
Version 1.1
======= This new version is designed to be used with Pelle's linker Polink Import libraries extracted from DLLs : Code: polib /nound /out:kernel32.lib \windows\system32\kernel32.dll polib /nound /out:user32.lib \windows\system32\user32.dll polib /nound /out:gdi32.lib \windows\system32\gdi32.dll These libraries contains names with no decoration. Simplified extrndef macro : Code: macro extrndef func,func2 { if used func2 extrn func as func2 : dword end if }
_________________ Code it... That's all... |
|||||||||||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.