简体   繁体   中英

User Interface for C-code

I've written a code in linux OS which produces prog.out as output file. Now I've to write GUI for the code.

what are best ways to write it?

PS - I wanted to choose between Java Swings and openGL. Which is best for writing a simple GUI and integrating it with my C- Application

Thanks in advance

OpenGL is a rendering library, not a UI toolkit. Comparing it to Swing doesn't make sense. And you can't choose Swing for a C application, unless you'd rather do the UI in Java and interact with a C "backend".

For a pure C solution, the best choice would probably be the GTK+ toolkit.

If you are prepared to use another language (you mention Java) then you may find C++ and Qt to be a good fit. Linking to the existing C code will be trivial and Qt works well on a great many platforms should you ever wish to support other platforms in addition to Linux.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM