I'm using borland c++ builder, and i'm trying to get the spawnl function to work correctly. At the moment i am trying to execute masm assembler, so to compile assembly code from a text editor i created.
i have enter:
result = spawnl(P_WAIT,"masm.exe","/z /zi /zd /l *.asm",NULL);
The *.asm is causing masm to assemble ALL files in the folder. As the
number of .asm files increases masm reaches a limit (somewhere around 8files) and cannot assemble any more.
In the short term, I remove some .asm files from the folder (store themsomewhere else).
In the long term however I need to find out how to get at the filename I am working on so to direct spawnl(...) to only assemble one file.
I would be very grateful to any suggestions of how to overcome this problem.