Privalov,

Many thanks.
Posted on 2003-06-28 07:14:26 by Vortex
Version 3.11
=========

Now,the scanner creates import scripts with decorated names for use with MS Link.
The scanner counts the parameters of the invoked API functions and generates the decorated
external names.Note that the scanner doesn't do any checking for the parameter numbers.

Direct call:


extrn '__imp__MessageBoxA@16' as MessageBox:dword


Indirect call:


extrn '_MessageBoxA@16' as MessageBox


For the indirect call,you need to use a modified version of stdcall.inc which can be
found in the attachment.

You can specify full paths in scan.ini
Thanks Inskipp for the bug report.

The examples in the attachment are built for:
a)Fasm without any linker
b)Fasm+MS Link (direct/indirect call)
c)Fasm+GoLink

Friends who are interested in using Fasm+MS Link with undecorated names can have
a look at:

http://www.asmcommunity.net/board/index.php?topic=13805
Posted on 2003-07-09 03:55:46 by Vortex
I just ran into this problem:
I ran scan.exe with the same settings that worked fine before I added some code (inlcuding an invoke to InitCommonControls), as I ran scan.exe, I got this error:
(Line 166) Undefined function InitCommonControls

But I've double checked, tripple checked, cut 'n' pasted the "InitCommonControls" from working sources, but still the same error, and when I cut that line (commenting itout isn't enought) out I get this error:
(Line 193) Undefined function CreateFontIndirect

The scan.ini contains these lines:
kernel32.dll

user32.dll
gdi32.dll
shell32.dll
comctl32.dll
comdlg32.dll
advapi32.dll
opengl32.dll
winmm.dll
wsock32.dll

And the version I'm using is 3.11.
Posted on 2003-07-15 11:02:29 by scientica
Scientica,

Can you send your source code that I can reproduce the error?
It's funny,I tried these two functions in my test source code and I had no problem.

Regards,

Vortex
Posted on 2003-07-16 04:28:42 by Vortex
Ok, I e-mailed you them :) (to save me from the public embarrasment if the error is some where in my sources, not yours ;))
Posted on 2003-07-16 06:56:08 by scientica
Scientica,

Thank you for reporting me the bug,I fixed it. :)

Version 3.12
=========

Now,you can redirect the message output of the scanner to a text file:



scan sample.asm -f2 >msg.txt
Posted on 2003-07-16 07:55:45 by Vortex