Advice on C Programming with MSVC++ 9
Hey guys. I'm not new to programming but I am a beginner at C and C++ coding. I only know the basics of the C language and how to write small and simple programs so far. I'm not interested in learning C++ for the long haul but I am interested in becoming a fluent C programmer. My predicament is adjusting to the MS Visual Studio 2008 environment strictly for C programming (not C++). At the moment I've only written some basic C console applications and built them in this environment.
With that said I would love some advice on where to start. I have some decent C programming books to learn from so learning the entire C language isn't going to be a problem for me (I've been programming in Delphi and VB for years). What I need some advice on is picking a good commercial IDE for pure C programming. I want to create GUI applications in Windows and not just console applications. I haven't found many resources for C coding GUI applications in Windows, it's mostly been C++ GUI application development. It seems to me that MSVC++ 9 is pretty much tailored to C++ development with C being the odd man out. Any advice on where to start would be much appreciated.
I wouldn't be too concerned about the delineation between C and C++ code. If you want to stick to C programming, you can still get the benefits of a C++ compiler. The C++ compiler doesn't force you to write object oriented code it just makes generic, object oriented code more convenient.
You certainly don't need to write object oriented C++ code to take advantage of VC2008. Win32 is essentially a functional API after all (as opposed to an object oriented framework like MFC).
So to summarise, I think a good commercial IDE for pure C programming is the VC2008 IDE. It gives you a very nice debugging environment with no downside if you are choosing to do purely functional C development. To do your GUI development you will need to use the Win32 API. There are lots of good books out there describing the API, but I would recommend "Programming Windows" by Charles Petzold, this gives a pretty good overview of the API. I also recommend "Debugging Windows Programs" by Everett N. McKay and Mike Woodring (I love this book , it is my debugging bible).
Good luck.
There is a reason why you won't find many books on writing Windows GUIs in C - it is very, very difficult and long-winded! You will find you need to write at least 10x (maybe 100x) more code than you would do if you used a C++ class library or a RAD tool such as Delphi. Why are you so determined to use C only?
I've never tried it (yet), but Pelles C seems to be something you might want to look at:
Note that VS2009 handles C just fine - I assume that you want the GUI design tools to spit out C code instead of C++. How much help the Pelles IDE gives in this regard, I don't know.
链接地址: http://www.djcxy.com/p/79156.html上一篇: 什么是具有优秀设计的小型开源项目?
下一篇: 有关使用MSVC ++进行C编程的建议9