仅使用Ansi C创建高级Windows gui库 [英] using only Ansi C to create advanced windows gui libraries

查看:47
本文介绍了仅使用Ansi C创建高级Windows gui库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

老年人,
希望我不要让我的查询令您失望.

与Windows操作系统中的Windows GUI相比,仅使用ansi C库就可以创建高级的Windows GUI.
与gtk guis类似,我想创建自己的guis,但仅使用ansi c库.

请提出建议.

问候,
Kiran

Hi Seniors,
Hope i do not disappoint you with my query.

Using only ansi C libraries will i be able to create advanced window GUIs when compared to that of the windows GUIs in windows operating system.
Similar to gtk guis, i want to create my own guis but only using ansi c libraries.

Please suggest.

Regards,
Kiran

推荐答案

简单的答案是是".
Windows最初(大部分)是用C语言编写的-带有一些汇编程序.

这样就可以了.


在实践中?答案是可能不会"-涉及大量工作.一生中一个人的工作可能太多了.
The simple answer is "yes".
Windows was originally written (largely) in C - with some assembler.

So it can be done.


In practice? The answer is "probably not" - there is a huge mountain of work involved. Probably too much work for one person, in one lifetime.


好吧,如果您想要一个高级"库,我会说使用C来构建它并没有多大意义. . C ++更适合进行此类工作.

那么,如果只需要ANSI C,为什么不直接使用Windows API?

也许,您希望在多个平台上拥有最常见的控件,而某些控件可能没有足够的C ++编译器.

顺便说一下,如今,编写类似的库已经没有多大意义.有很多现有的解决方案.这样做将需要大量工作.如果它适合您,那么可能不值得付出努力.如果是别人的话,那您至少迟了15年!!!

顺便说一下,.NET Winforms之类的技术要远远优于MFC(C ++),而MFC(C ++)就可用性和易于开发性而言,其本身也远胜于Win32 API(C语言).

WPF之类的更新技术甚至更强大,尽管起步并不简单.
Well, if you want an "advanced" library, I would say that it does not make much sense to use C to build it. C++ is is way more adequate for such work.

Then if you want only ANSI C, why not directly uses Windows API?

Maybe, you want to have most common controls on multiple plateform some on which might not have an adequate C++ compiler.

By the way, these days, it does not make much sense to write similar libraries. There are a lot of existing solutions. Doing it, would be a lot of work. If it is for you, then it probably don''t worth the effort. If it is for others, then you are at least 15 years too late!!!

By the way, technologies like .NET Winforms are far superior to MFC (C++) which is itself far superior to Win32 API (in C) when it come to usability and ease of developement.

And newer technologies like WPF are even more powerful although no as simple to start with.


这篇关于仅使用Ansi C创建高级Windows gui库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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