flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vortex 23 May 2004, 19:39
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 29 May 2004, 21:35
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 16 Jul 2005, 15:16
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.