Compiling CHUI and GUI code to run on Windows and HP-UX

Posted by MBeynon on 03-Oct-2016 04:42

Hello,

Is it possible to compile a codebase that contains both CHUI(TTY) and GUI (.NET) code under windows and deploy the resulting RCODE library to both HP-UX and Windows?

I found this in the knowledgebase regarding 11X Opennedge;

http://knowledgebase.progress.com/articles/Article/P124103

which states;

"Starting in OpenEdge 11.0, r-code is portable across all platforms, regardless of OS platform, Bit Architecture, Little Endian or Big Endian byte ordering, provided that the application code:

  • is written for the same user interface: character mode (CHUI) versus graphical mode (GUI), and
  • does not contain references to Operating System specific commands (eg: OS-COMMAND) that are not available on the target platform."

The reason for this is that we'd like to simplify the compile process and generate one library from one compile that can be deployed to both OS's. I'm guessing we'd need some logic to detect CHUI sources and use V6FRAME/STREAM-IO compile flags?

Thanks,

Mark.

All Replies

Posted by Riverside Software on 03-Oct-2016 06:42

Hi,

Yes, you'll be able to compile your ChUI and GUI code on Windows. It will be a two-steps process, as you'll have to compile GUI code with a prowin.exe process, and TTY code with _progres.exe.

And instead of rewriting the build automation process by yourself, just use PCT : github.com/.../pct .

This thread is closed