4

I want to write a front-end to an application written in C/C++.

I use Solaris 10 and plan to port the application to some other architectures (Windows first).

4

8 回答 8

3

I'd recommend taking a look at wxWidgets to provide some cross platform UI widgets that will work on Solaris and Windows.

于 2008-08-27T05:05:50.577 回答
3

Qt 4 is the best tool for this job. If you want to work with other languages, it also has bindings for Java and Python

于 2008-08-27T05:07:03.927 回答
1

GTK——和格莱德。

这就是 GTK 上的 C++ 绑定

GTK 将在 Windows 上运行(只需查看 GIMP)

无处不在,没有 QT 许可证来扰乱您的数百万美元。

于 2008-09-05T08:18:05.487 回答
1

On a Mac, this would be easy. The Cocoa API is great when programming in Objective C (which compiles fine with C/C++ files).

Otherwise the situation is a bit more grim. As for Rapid prototype, you might want to check the CodeGear (Borland/C++ Builder) tools. I think their VCL library is cross-platform.

Otherwise, you could interface with a scripting language like Ruby and use fantastic front end libraries like Shoes. Python also interfaces with wxWidgets to make writing cross-platform front ends easy. Keep in mind that this all requires taking time to make sure your C/C++ code can talk to the scripting language. This is not trivial, and the amount of effort required depends upon the style of your code base. (Oh my God.)

Lastly, you could just use wxWidgets itself. This might be your best bet since it requires no additional overhead than coding the UI itself. That said, C++ is not the greatest language for designing UIs.

And super lastly, consider writing a code generator that converts from say Shoes to whatever wxWidgets code is needed to generate the same Shoes app. That way you can do easier UI design but still get C++ code in the end. Likewise, you could code gen off of the Python/wxWidgets code. Then sell such a code generator. :-)

于 2008-08-27T05:06:10.343 回答
0

Ultimate++是一个跨平台的 C++ 快速应用程序开发框架。它专门针对快速发展。Ultimate++ 网站提供了与提到的其他框架(例如 Qt 和 wxWidgets)的一些比较。

于 2008-09-05T08:32:32.910 回答
0

我自己使用wxWidgets。它充分利用了 C++ 语言的特性并使用了智能指针,因此对象和内存管理并不难。事实上,这感觉就像用脚本语言编写。

再加上像wxFormBuilderwxDesigner这样的对话框编辑器/代码生成器(链接到屏幕截图),它成为快速开发的好工具包。

于 2008-08-27T09:30:16.293 回答
0

看看支持 X11 和 Windows的FLTK 。

于 2008-08-27T12:41:01.747 回答
0

我使用ASP.NET Web 窗体将 UI 前端设置为以旧语言、RESTful 风格的 Web 服务和 bash 脚本编写的命令行应用程序的集合。

一旦它在 Firefox 上运行,它至少应该在其他架构上的 Firefox 上运行。如果你还没有玩过它,你应该尝试一下 ASP.NET(ASP.NET MVC似乎是当前的趋势)。与 RAD 不太一样,但它确实为您提供了表单等的视觉设计。

于 2008-09-05T10:07:26.863 回答