At the company I'm working we want to start using SE for editting (on pc) and compiling (on the host mainframe system). For downloading and uploading files from/to the host a Slick-C macro is used that calls a function in a dll which makes a winsock connection.
For the compilation-process also a function in the dll is called via a Slick-C macro. This dll-function does the following :
- upload the modified source-file from the pc to the host
- send a command to the host that triggers a compilation at the host
- waits for the compile to end
- when the compile went wrong the dll receives the name of the hostfile, that includes the compiler-errors
- the (host)error-file is downloaded to the pc
- then the dll-call, from out of the Slick-C macro, returns and the Slick-C macro continues. The Slick-C macro knows the fysical location of the download error-file on the pc (lets say C:\hosterrors.txt)
This file contains one line per error (pc-filename, line, column, error-tekst).
I already have setup an error-parser via "Build - Configure error parsing" in the category "user". I named it "myerrorparser". I validated it on a line in C:\hosterrors.txt and it works.
But now my question : how do I get the compile-error window (or whatever it is called) activated and filled with the errors in C:\hosterrors.txt via parser "myerrorparser" .... so that I can double-click on an error to correct the error in the sourcefile.
Can somebody please tell me how to do this in a Slick-C macro ?