Edit:2:No way to get %fasminc% or %include% var.env
/to revolution/ It is a bug !
------
The error can be reproduced simply in ASMEDIT+FASM.DLL demo.
Try to add, for example (but not to big files):
include "%include%\macro\if.inc" result error, but
include "c:\fasm\include\macro\if.inc" ok
------
Hallo All,
error resolving a %fasminc% environment var when
using FASM.DLL to compile.
When checking GetEnvironmentVariable for the calling process,it results
in a presence of fasminc variable = C:\fasm\include (all ok).
I have FASM.DLL in the current dir,with
a "test.asm" source starting in this way
format PE CONSOLE 4.0
entry start
include '%fasminc%\win32a.inc' ;<-- line 3 raises error
...
both the functions
fasm_AssembleFile and
fasm_Assemble
raise always a
FASMERR_FILE_NOT_FOUND = -101 error
on line 3 (from LINE_HEADER struct)
But if i resolve the path in fasminc manually,
all compiles good with both the functions.
hopcode