Hello, we've developed some software to communicate different 4GL programs in different machines using TCP/IP. The calling and called programs in 4GL are required to use some EC/C functions so it can communicate via TCP/IP. This functions are group in a file named api.ec. Til now we didn't have problems beacause we compiled the 4GL programs using standard line commands like:
$ c4gl -o calling calling.4gl api.ec
The 4GL programs and the API.ec use some common variables, using the command I just stated we didn't have problems because the command produced one single executable file so the variables in the C and in the 4gl were the same and we can use them as we wanted.
The problem is when this compilation has to pass the precompiled process. Using fglo, zrun, etc. I mean, now my calling program doesn't compile directly to a executable file, instead, to a precompiled file. Now, my functions are not in the same program but callled at runtime. As result of this, the 4gl can't see when I update a variable from ec and viceversa. I know my problem can be figured out making the 4gl and ec code just one ..even when I'm using fglgo, zrun,etc... Does anyone know if this is possible and how to do it????
Alejandro
$ c4gl -o calling calling.4gl api.ec
The 4GL programs and the API.ec use some common variables, using the command I just stated we didn't have problems because the command produced one single executable file so the variables in the C and in the 4gl were the same and we can use them as we wanted.
The problem is when this compilation has to pass the precompiled process. Using fglo, zrun, etc. I mean, now my calling program doesn't compile directly to a executable file, instead, to a precompiled file. Now, my functions are not in the same program but callled at runtime. As result of this, the 4gl can't see when I update a variable from ec and viceversa. I know my problem can be figured out making the 4gl and ec code just one ..even when I'm using fglgo, zrun,etc... Does anyone know if this is possible and how to do it????
Alejandro