想象一下:GUI标准。 [英] Imagine: A GUI standard.

查看:70
本文介绍了想象一下:GUI标准。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么没有图形用户界面标准?想一想

一秒钟。你可能会说,用于GUI的evey系统API不同,

但确实需要考虑:每个操作系统都需要不同的编译,并且通常完全不同的编译器代码。例如,windows上的
gcc与linux / unix上的gcc代码不同,但是当你使用它编译时,它会产生相同的程序。是的你可以

采取类似的方式:


#include< stdio.h>


int main( void){

printf(Hello,world!\ n);

返回0;

}


并在Mac OS X,Windows XP,Debian Linux,freeBSD等上编译它。

每次(特别是在unposix驱动的操作系统上)不同的机器代码

生成。那你为什么不能接受:


#include< stdgio.h>


int main(void){

stdwin s_window;


s_window = makenewwin(WINDOW_DIALOG);

win_printf(s_window," Hello,World!");

等(5);

closewin(s_window);


返回0;

}


上面所有的功能都是想象中的,但为什么他们没有创建?b $ b?图形用户界面已存在scince the mid

80'(或者如果我错了可能更早纠正我)但仍然没有关于它们的
C标准。是的,在SEVERAL

系统上需要更多的编码,但它甚至没有像是否需要花费很多精力来支持GUI。将GUI程序从linux移植到

windows,或者说回来,真是太棒了。当然有一些东西存在于

windows和linux中,例如GTK,但是,有不同之处,而且这个

不是标准。

在有人说好了,你知道吗,

基于文本的用户界面不是大多数用户使用的东西之前需要花多长时间,不是吗?
很好,以便有基于GUI的漂亮的C标准?

嗯?就不会迟到它

海苔

解决方案
没有********* @ gmail.com 发布:

为什么不是有一个图形用户界面标准?



有,有种。互联网上有可用的图书馆(不可能是b $ b想到他们的任何名字)这样做可以编译你的

GUI代码Windows,Linux,Mac OS ......

-


Frederick Gotham


2006年-06-26,Frederick Gotham< fg ******* @ SPAM.com>写道:

没有********* @ gmail.com 发布:

为什么没有图形用户界面标准?



有,有点。互联网上有可用的图书馆(不能想起他们的任何名字),这些图片就是这样 - 你可以为Windows,Linux,Mac OS编译你的GUI代码。 。




Allegro就是其中之一。但这是对comp.lang.c的OT。在comp.std.c中它可能是
ontopic。


-

Andrew Poelstra< http://www.wpsoftware.net/blog >

给我发电子邮件,请使用apoelstra。在上面的地址。

我知道那个小镇的区域就像我脑后一样。


没有********* @ gmail.com 写道:

为什么不是''吨有一个图形用户界面的标准



将?offtopic>


有许多可用的跨平台GUI的试剂盒,即GTK ++,Fox,Qt,

wxWidgets。看看下面的页面
HTTP:// WWW .geocities.com / SiliconVall ... 4 / guitool.html
http://www.atai.org/guitool/


<真的offtopic>


唉,大多数是C ++,不是纯旧的C


将/ reallyofftopic>


将/ offtopic>


Why isn''t there a Graphical User Interface standard? Think about it
for a second. You may say, well evey systems API for GUIs is differnt,
but do take into acound: every operating system requires differnt
compilations and often totally differnt compiler code. For instance
gcc on windows in not the same code as gcc on linux/unix but it
produces the same programs when you use it to compile. Yes you can
take something like:

#include <stdio.h>

int main(void) {
printf("Hello, world!\n");
return 0;
}

And compile it on Mac OS X, Windows XP, Debian Linux, freeBSD, etc.
Each time(especially on the unposix driven OS''s) differnt machine code
is generated. So why can''t you take:

#include <stdgio.h>

int main(void) {
stdwin s_window;

s_window = makenewwin(WINDOW_DIALOG);
win_printf(s_window, "Hello, World!");
wait(5);
closewin(s_window);

return 0;
}

All of the functions above are imagineary of course but why havn''t they
been created? Graphical User Interfaces have existed scince the Mid
80''s (or maybe earlier correct me if I am wrong) yet there is still no
C standard about them. Yes more coding would be required on SEVERAL
systems, but it doesn''t even apear as though there has been much effort
to make a standered for GUI. Porting GUI programs from linux to
windows, or back, is hell. Sure there are things that exist for
windows and linux for example GTK, but, there are differances, and this
is not "standard".
How long is it going to take before someone says "Okay, you know what,
text based user interfaces are not what most users use, wouldn''t it be
nice to make it so that there is nice C standard based on GUIs?".
Well? Wouldn''t it?
Nori

解决方案

no*********@gmail.com posted:

Why isn''t there a Graphical User Interface standard?


There is, kind of. There''s libararies available on the internet (can''t
think of any of their names) which do exactly that -- you can compile your
GUI code for Windows, Linux, Mac OS...
--

Frederick Gotham


On 2006-06-26, Frederick Gotham <fg*******@SPAM.com> wrote:

no*********@gmail.com posted:

Why isn''t there a Graphical User Interface standard?


There is, kind of. There''s libararies available on the internet (can''t
think of any of their names) which do exactly that -- you can compile your
GUI code for Windows, Linux, Mac OS...



Allegro is one. But this is OT to comp.lang.c. It''s possible that it''d
be ontopic in comp.std.c.

--
Andrew Poelstra < http://www.wpsoftware.net/blog >
To email me, use "apoelstra" at the above address.
I know that area of town like the back of my head.


no*********@gmail.com wrote:

Why isn''t there a Graphical User Interface standard?



<offtopic>

There are many cross platform GUI kits available, i.e. GTK++, Fox, Qt,
wxWidgets. Check out the following pages
http://www.geocities.com/SiliconVall...4/guitool.html
http://www.atai.org/guitool/

<really offtopic>

alas, most are C++, not plain old C

</reallyofftopic>

</offtopic>


这篇关于想象一下:GUI标准。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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