如何使用C程序开发GUI? [英] How to develop GUI using C program?

查看:104
本文介绍了如何使用C程序开发GUI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道如何在C程序中开发GUI。另外我想知道GUI是否可以使用C ++开发并与我开发的C代码合并?

Hi,

I would like to know how to develop a GUI in C program. Also I would like to know whether the GUI can be developed using C++ and incorporated with my developed C code?

推荐答案

说实话,如果你不得不问 - 那么答案是不要这样做。



问题是C本身没有内置图形支持 - 所以你需要使用你将要运行的任何操作系统的设施,我们不知道那是什么。并且所有操作系统的工作方式都不同,因此实际上并没有一刀切的解决方案。更糟糕的是,它也将依赖于您使用的C编译器,因为其中许多也有专有库,因此您不一定在所选的开发系统中使用您喜欢的库



如果我是你,我暂时离开它,并开始编写不那么庞大的任务 - 从头开始​​的图形UI是一项非常非常大的工作!
To be honest, if you have to ask - then the answer is going to be "don't do it yet".

The problem is that C itself has no graphics support built in - so you need to use the facilities of whatever operating system you are going to run under, and we don't know what that is. And all operating systems work differently, so there isn't really a "one size fits all" solution. To make matters worse, it's also going to depend on which C compiler you use, as many of them also have proprietary libraries, so you can't necessarily use the libraries you like in your chosen development system

If I was you, I'd leave it for the moment, and start coding less enormous tasks - a Graphics UI from scratch is a very, very big job!


是的,请参阅 https://msdn.microsoft.com/en -us / library / hh309470(v = vs.85).aspx [ ^ ]。


这篇关于如何使用C程序开发GUI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆