@El_Choni
Hi El_Choni,
i'm wrinting a little tool to do the final lib file from asm files and descriptor file.
I use FASM to convert asm to obj file.
Using RunProgram() to do that, i have no problem, but i can't get output msg from FASM.
I try to use your CGI lib, Execute commande. I do that in many ways without succes, i think it's only a synthax error.
FASM path is C:\PROGRAM FILES\PUREBASIC\Compilers\FASM.exe
Lib Path is (all my asm + .desc are here for example) C:\Program Files\PureBasic\Libs\MoreComboBox\
I put a space before commandline parameter.
But i'm not able to use this commande with succes. FASM is running but most of the time i get FASM msg :
flat assembler version 1.47
usage: fasm source output
or sometimes only flat assembler version 1.47
It depends on the parameters.
FASM need this synthax
FASM.exe MyAsmFile.asm MyAsmFile.obj
For MyAsmFile.asm i put entiere path and for the obj too, and one with the other without etc but it doesn't work.
My question is : What is the correct synthax to run correctly FASM in that case with your Execute command ?
Thanks for your Help El' Choni
Denis
I need Help for Execute() command from CGI lib
Hi,
Try this:
The path has spaces, so it's a good idea to put it inside quotes. If this doesn't work, try putting the whole appname+arguments as either appname or command line.
The function includes a space before the arguments.
Tell me if it works (it should).
Try this:
Code: Select all
*FAsmOutput = AllocateMemory(0, 1024)
If Execute(Chr(34)+"C:\PROGRAM FILES\PUREBASIC\Compilers\FASM.exe"+Chr(34), Chr(34)+"C:\Program Files\PureBasic\Libs\MoreComboBox\MoreComboBox.asm"+Chr(34), "", *FAsmOutput, 7)
Debug PeekS(*FAsmOutput)
EndIf
The function includes a space before the arguments.
Tell me if it works (it should).
El_Choni

