473,785 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Imagine: A GUI standard.

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(WIND OW_DIALOG);
win_printf(s_wi ndow, "Hello, World!");
wait(5);
closewin(s_wind ow);

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

Jun 26 '06 #1
24 2456
no*********@gma il.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
Jun 26 '06 #2
On 2006-06-26, Frederick Gotham <fg*******@SPAM .com> wrote:
no*********@gma il.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.
Jun 26 '06 #3
no*********@gma il.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>

Jun 26 '06 #4


no*********@gma il.com wrote On 06/26/06 17:25,:
Why isn't there a Graphical User Interface standard? [...]
There are lots of them. Enough, as the humorists like
to say, so everybody can have a standard all his own.
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?".


You know, graphical interfaces are not the only other
standards that exist. There are also standards for sound,
for parallelism, for networking, for operating systems, for
safety-critical systems, for navigation, for telephony, ...

What do you think would happen if all these standards
were somehow adopted as part of the C programming language?
For one thing, the C Standard would need to be printed in
multiple volumes occupying a couple meters of shelf space.
For another, the committee meetings would have such a huge
number of participants with conflicting purposes that no
revision of the standard could ever be finished. And let's
not even think about how long it would take before complete
implementations of this super-C became available (just look
at how slow C99 uptake has been). And, of course, since all
these standards would be part of C -- not part of C++ or
Java or Lisp or Python or NameYourFavorit eLanguage -- there
would be enormous inter-language compabibility problems.

There are many useful standards. Most of them should
not be part of a programming language definition.

--
Er*********@sun .com

Jun 26 '06 #5
Andrew Poelstra <ap*******@loca lhost.localdoma in> writes:
On 2006-06-26, Frederick Gotham <fg*******@SPAM .com> wrote:
no*********@gma il.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.


Only if you're suggesting a change to the C standard.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jun 26 '06 #6
In article <11************ **********@i40g 2000cwc.googleg roups.com>,
no*********@gma il.com <no*********@gm ail.com> wrote:
Why isn't there a Graphical User Interface standard?
There are lots of them! Indeed, that's a big part of the problem.
So why can't you take: #include <stdgio.h> int main(void) {
stdwin s_window;
s_window = makenewwin(WIND OW_DIALOG);
win_printf(s_wi ndow, "Hello, World!");
wait(5);
closewin(s_wind ow);
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.


With good reason. Have you ever looked at the size of the documentation
for X and Motif??? Programming a graphics system takes a *lot* of work,
if it is to be sufficiently general and flexible and efficient.

Various attempts have been made to create industry standards for
graphics. OpenGL (an open standard) is a good example -- as is Microsoft's
reaction to OpenGL of creating Direct-X. You know the refrains,
"OpenGL isn't efficient enough", and "OpenGL interferes with our
ability to innovate."

Graphics standards have a lot of economic politics involved, because
there is big business in creating fast graphics cards.

If you weren't thinking as big as X or OpenGL or Direct-X, then
you must be thinking of a relatively restricted API -- but then what
do you include and what don't you?
There has been a huge effort into creating portable graphic systems
that look pretty much the same on every platform -- it is called Java.
Released by Sun, made incompatible by Microsoft until a Sun forced
the issue in court.

I'm not at all familiar with Java internals; the rumblings I've heard
are that a port of Java to a new system is a considerable effort (which
is why it isn't uncommon for OS vendors to lag several releases
behind.) How productive would you say it would be for the X3.159
committee people to get together and re-invent the Java graphics
interface? Is Microsoft likely to adopt the hypothetical standard
if it it provides substantial flexibility? Or are you thinking
only of something with less capabilities than tcl/tk ?
--
Programming is what happens while you're busy making other plans.
Jun 26 '06 #7

no*********@gma il.com wrote:
Why isn't there a Graphical User Interface standard? Think about it


Some say there is; google for "Tcl/Tk".

<snipped>

goose,

Jun 26 '06 #8
On Mon, 26 Jun 2006 14:25:09 -0700, no*********@gma il.com wrote:
<snip>
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


The fatal error here is assuming that C even provisions for a
"text based user interface". Fact is, I don't believe the C describes any
kind of user interface system.

It has stream oriented I/O and even records (aka "lines"), but Plan9
managed to use stream oriented I/O for building a GUI system, so....

Jun 26 '06 #9
On 2006-06-26, Keith Thompson <ks***@mib.or g> wrote:
Andrew Poelstra <ap*******@loca lhost.localdoma in> writes:
On 2006-06-26, Frederick Gotham <fg*******@SPAM .com> wrote:
no*********@gma il.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.


Only if you're suggesting a change to the C standard.


Unless he was rambling in the wrong group and his post had absolutely
nothing to do with C, I believe that he /was/ suggesting a change to
the C standard.

But that's just my interpretation of what he decided to post and where
he decided to post it.

--
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.
Jun 27 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
8331
by: John Bentley | last post by:
John Bentley writes at this level: If we think about our savings accounts then division never comes in (as far as I can see). We deposit and withdraw exact amounts most of the time. Occasionaly we get an interest payment. Unless the bank is cruel to its developers the interest figure will be able to be exactly represented by a computer, something like 4.1% as opposed to 4 1/3 % 125.78 * ' Initial Balance 04.1% -------
0
239
by: Anupam Jain | last post by:
Hi... Just returned from Bangalore last nite finishing off with the Microsoft Imagine Cup 2004. We were the National Finalists from North India + East India , representing 23 states and union territories of India at the India Finals of the Microsoft Imagine Cup, from IEC College Of Engineering And Technology. The West Zone was represented by VESIT, Mumbai and the South Zone by Sir M Visvesvaraya Institute of Technology, Bangalore.
43
5026
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own libraries. I'm not sure if that's a good thing or not. AFAIK, most of Qt is compatable with the Standard Library. That is, QLT can interoperate with STL, and you can convert back and forth between std::string and Qt::QString, etc. Are there any...
1
3227
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: warning: MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 file /etc/my.cnf from install of MySQL-server-standard-5.0.24a-0.rhel3 conflicts with file from package mysql-3.23.58-1 file...
0
911
by: Thomas Holloway | last post by:
Hello fellow programmers and software enthusiasts. I am here today to ask of any people for an opportunity to work within a team for the Imagine Cup Korea 07 contest. The Imagine Cup. The name itself evokes possibilities. The world's premier student technology competition, the Imagine Cup is one way Microsoft is encouraging young people to apply their imagination, their passion, and their creativity to imagining technology innovations...
9
1501
by: Man-wai Chang | last post by:
How do/would you implement a pop-up window for user to pick a value out of a searchable list and then pass it back to the textbox? -- iTech Consulting Services Limited Expert in ePOS (Point-Of-Sales) solutions Website: http://www.itech.com.hk (IE only) Tel: (852)2325 3883 Fax: (852)2325 8288
1
1394
by: hsyq8xg | last post by:
From Google, translated to English from French: www.google.com/translate?u=http%3A%2F%2Fwww.pcinpact.com%2Factu%2Fnews%2F43165-premier-supercalculateur-GPU-France-Tesla.htm&langpair=fr%7Cen&hl=en&ie=UTF8 "A hybrid system composed of 1068 CPU octocoeurs new generation, with 48 modules GPU to make a maximum of parallel calculations." "According to our information, the 1068 processors are indeed Nehalem eight of hearts, and 48 modules...
4
1231
by: Ahmedhussain | last post by:
Hi every one, There are some questions related to Imagine Cup. But first I want to know how many people know about Imagine Cup. More Over I need to get an idea for Imagine Cup. there are some millenium goals that Microsoft have provided.. And In my group Im the only person who is thinking about it and uptill right now, Only one of my group member is interested about it. But None of us have any bright ideas in mind. SO I was thinking...
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.