The Mudcat Café TM
Thread #45197   Message #695025
Posted By: Jon Freeman
21-Apr-02 - 04:22 PM
Thread Name: Tech: Converting PDF Sheet Music
Subject: RE: Tech: Converting PDF Sheet Music
John in Brisbane, would it be possible to create one Windows front end to control both abcm2ps and GhostScript?

I may be talking through my hat but one thought I have is to leave the executables as they stand and run them one after another using the Windows function CreateProcess. First execute abcm2ps. If CreateProcess is successful, you could then enter a loop calling GetExitCodeProcess until the exit code changes from STILL_ACTIVE so that you know abcm2ps has finished. Then execute GhostScript using the abc2ps output as the input file.

Jon