`

What the f*** of Visual C++?

阅读更多
一直崇拜c/c++的牛人,崇拜那些只有几百K甚至几十K的程序。

我知道只有C/C++可以帮助我。

我的内心发出狂热的呼喊:我要学C++

于是无奈之下安装了N个G的Visual studio。。。

Visual C++,我回来了,请不要抛弃我,虽然以前我没有耐心的学习你。。。

我潜心阅读MSDN的文档。。。

MFC,不是我想要的。。。一个很莫名奇妙的框架,以前就是他这个第三者破坏了我和C++良好的感情

Winform是什么??原来是披着C++外衣的.net狼。

我要的是最美最纯的C,接受C++其实是一种妥协,但还要我接受这些浮华的勒涩吗?NO!!!

我知道,windows下我也可以用printf来写最纯的C,但是,我们还需要GUI,除了要单纯的心,我们要一个美丽的脸庞。

GDI、GDIPlus,WIN API,非常好,我终于找到我的梦中情人了,我要的就是这样的最单纯的程序。

我潜心的读相关的文档,就像在读着盼望已久的情书。。。

TRUE,FALSE,VOID,怎么不是 true ,false ,void,我是不是看花了。

WCHAR NWPSTR, LPWSTR, PWSTR; 。。。 我理解这良苦用心,希望我更容易看懂。

INT_PTR,LRESULT 。。。

虽然我很爱她,但我终于忍不住对她发火了:美女,请问你真的是C小姐吗?你可以正常点说话吗?

Please help me , How could I found my Miss C ?

===================================
最后补充一下,看了下WCHAR,LPWSTR这些玩意的定义,最终是用到了 __wchar_t 这个非标准的关键字。
MS定义这些别名我想也是为了适应将来的编译器变化。
另外在32位和64位操作系统中,int、long、的长度也是不一样的,甚至64位windows和64位的 nix的long长度也不一样。
请看此文:一个长整数的自述
说到底 c/c++ 标准还不完善,但是我比较不满“Visual C++”的是,他太special了。
分享到:
评论
71 楼 jinleileiking 2009-12-07  
口水帖,无聊。。。。

我觉得没两把刷子还是不要批评XX语言为好
70 楼 zzsczz 2009-12-03  
穿库子不舒服的话可以慢慢适应么,习惯就好了。不行就换个库子,再不行就裸奔 ,只是有些地方禁止裸奔,而且一起跑的人很少。

那个MFC的库子穿的人多,骂的人更多,连没穿过的和不会穿的都一起在骂,不过还是有人穿。
69 楼 jasongreen 2009-12-03  
Arath 写道
不得不佩服,lz学了几下c/c++就能提出
"说到底 c/c++ 标准还不完善,但是我比较不满“Visual C++”的是,他太special了。"
这种结论.


这才是C++牛人的回帖
68 楼 Arath 2009-12-02  
不得不佩服,lz学了几下c/c++就能提出
"说到底 c/c++ 标准还不完善,但是我比较不满“Visual C++”的是,他太special了。"
这种结论.
67 楼 mikeandmore 2009-11-25  
Garriot 写道
楼主啊,我觉得吧,其实VC也没啥错,这就是咱现在到了M$的地盘上,就得听人家M$的规矩啊,就像见了QT我就得说Q_OBJECT,SLOT,SIGNAL。只是有人规矩多,有人规矩少而已。
推荐你本书吧《GUI应用程序移植——在Linux上模拟Windows API的方法》,这本书的话题比较新,说不定你看看会有新的灵感

呵呵,在书店翻过这本书的。。。。
66 楼 Garriot 2009-11-25  
楼主啊,我觉得吧,其实VC也没啥错,这就是咱现在到了M$的地盘上,就得听人家M$的规矩啊,就像见了QT我就得说Q_OBJECT,SLOT,SIGNAL。只是有人规矩多,有人规矩少而已。
推荐你本书吧《GUI应用程序移植——在Linux上模拟Windows API的方法》,这本书的话题比较新,说不定你看看会有新的灵感
65 楼 magic8421 2009-11-24  
我是来看你们吵架的....
路过,,, 不算灌水吧 =.=
64 楼 myth2loki 2009-11-23  
visualcatsharp 写道
zzsczz 写道
有一个满足楼主需要的framework win32++
http://win32-framework.sourceforge.net/

还有个 winx   gui
http://www.winxgui.cn/

都是以c++的视角封装win32的gui api

btw c++ 就不是去写windows based 程序的。  vb + ocx才是。 c++ 可以去写游戏。不是c++烂,是GDI烂。

GDI API对于应用程序来说太low level了,对于游戏来说,,可以打牌 和  挖雷,没有其它

看来这位钻石人士的功力尝浅。没事不要出来误导人。
先将文字写通顺了才出来见人吧。

这位大师除了攻击人以外,就没说过什么话!
63 楼 phoenixup 2009-11-20  
我是来表扬Qt的,没关系吧~~
62 楼 visualcatsharp 2009-11-19  
zzsczz 写道
有一个满足楼主需要的framework win32++
http://win32-framework.sourceforge.net/

还有个 winx   gui
http://www.winxgui.cn/

都是以c++的视角封装win32的gui api

btw c++ 就不是去写windows based 程序的。  vb + ocx才是。 c++ 可以去写游戏。不是c++烂,是GDI烂。

GDI API对于应用程序来说太low level了,对于游戏来说,,可以打牌 和  挖雷,没有其它

看来这位钻石人士的功力尝浅。没事不要出来误导人。
先将文字写通顺了才出来见人吧。
61 楼 七猫 2009-11-18  
晕,连gdi也烂了。
60 楼 ray_linn 2009-11-18  
zzsczz 写道
c++ 可以去写游戏。不是c++烂,是GDI烂。

GDI API对于应用程序来说太low level了,对于游戏来说,,可以打牌 和  挖雷,没有其它



这句话怎么听都觉得奇怪。。。GDI太low level??
59 楼 zzsczz 2009-11-18  
有一个满足楼主需要的framework win32++
http://win32-framework.sourceforge.net/

还有个 winx   gui
http://www.winxgui.cn/

都是以c++的视角封装win32的gui api

btw c++ 就不是去写windows based 程序的。  vb + ocx才是。 c++ 可以去写游戏。不是c++烂,是GDI烂。

GDI API对于应用程序来说太low level了,对于游戏来说,,可以打牌 和  挖雷,没有其它
58 楼 ray_linn 2009-11-18  
jasongreen 写道


mfcXX。dll,静态链接我知道,但总觉得程序变臃肿了。



臃肿也是相对的,即使静态链接了MFCxx.lib,一个带所有菜单/ToolBar的VC程序


use mfc as shared 是53k,
use mfc as static 是501k

这种即使膨胀,也不会像spring framework那样无限制的膨胀....
57 楼 jasongreen 2009-11-18  
ray_linn 写道
jasongreen 写道
ray_linn 写道
jasongreen 写道
mikeandmore 写道
linkobe 写道
一直在想chrome和ff这样的是用什么写的界面......

linux下都是gtk写的。。

chrom的windows界面据说是wtl
因此,我也打算用wtl
对了,我就是被鄙视的楼主



chrome竟然会用Microsoft的WTL来写?


WTL不是Microsoft的,WTL是基于ATL(我也不懂是什么,VC里面有ATL项目)而写的一个开源library,我稍微看了下代码,感觉很清晰,封装很合理,比MFC的确要好很多,而且编译后不需要引入类似mfc42.dll的东西。


....诶....WTL当然是Microsoft的东西,WTL是MS程序员写的,最早也是在MS的platform SDK里发布的,后来被MS捐给开源社区。所以也有MS PL的授权。饮水不忘挖井人呵

mfcXX.dll,你也可以选择静态链接之后就不需要mfcxx.dll了。。。汗一个

原来是MS捐出来的,受教了。

mfcXX。dll,静态链接我知道,但总觉得程序变臃肿了。
56 楼 ray_linn 2009-11-18  
jasongreen 写道
ray_linn 写道
jasongreen 写道
mikeandmore 写道
linkobe 写道
一直在想chrome和ff这样的是用什么写的界面......

linux下都是gtk写的。。

chrom的windows界面据说是wtl
因此,我也打算用wtl
对了,我就是被鄙视的楼主



chrome竟然会用Microsoft的WTL来写?


WTL不是Microsoft的,WTL是基于ATL(我也不懂是什么,VC里面有ATL项目)而写的一个开源library,我稍微看了下代码,感觉很清晰,封装很合理,比MFC的确要好很多,而且编译后不需要引入类似mfc42.dll的东西。


....诶....WTL当然是Microsoft的东西,WTL是MS程序员写的,最早也是在MS的platform SDK里发布的,后来被MS捐给开源社区。所以也有MS PL的授权。饮水不忘挖井人呵

mfcXX.dll,你也可以选择静态链接之后就不需要mfcxx.dll了。。。汗一个
55 楼 jasongreen 2009-11-18  
ray_linn 写道
jasongreen 写道
mikeandmore 写道
linkobe 写道
一直在想chrome和ff这样的是用什么写的界面......

linux下都是gtk写的。。

chrom的windows界面据说是wtl
因此,我也打算用wtl
对了,我就是被鄙视的楼主



chrome竟然会用Microsoft的WTL来写?


WTL不是Microsoft的,WTL是基于ATL(我也不懂是什么,VC里面有ATL项目)而写的一个开源library,我稍微看了下代码,感觉很清晰,封装很合理,比MFC的确要好很多,而且编译后不需要引入类似mfc42.dll的东西。
54 楼 mikeandmore 2009-11-18  
jasongreen 写道
mikeandmore 写道
linkobe 写道
一直在想chrome和ff这样的是用什么写的界面......

linux下都是gtk写的。。

chrom的windows界面据说是wtl
因此,我也打算用wtl
对了,我就是被鄙视的楼主

momo,我不鄙视你。。。
53 楼 mikeandmore 2009-11-18  
ray_linn 写道
jasongreen 写道
mikeandmore 写道
linkobe 写道
一直在想chrome和ff这样的是用什么写的界面......

linux下都是gtk写的。。

chrom的windows界面据说是wtl
因此,我也打算用wtl
对了,我就是被鄙视的楼主



chrome竟然会用Microsoft的WTL来写?

啊,想起来了,是用WTL写的。。。嗯
52 楼 ray_linn 2009-11-18  
jasongreen 写道
mikeandmore 写道
linkobe 写道
一直在想chrome和ff这样的是用什么写的界面......

linux下都是gtk写的。。

chrom的windows界面据说是wtl
因此,我也打算用wtl
对了,我就是被鄙视的楼主



chrome竟然会用Microsoft的WTL来写?

相关推荐

    oRTP-0.16.3 软件包下载 2010年7月发布。

    What is it ? ************ oRTP is a LGPL licensed C library implementing the RTP protocol (rfc3550)....There are instructions and Microsoft Visual C++ project files in build/win32native/oRTP.

    Foundations of C++/CLI : The Visual C++ Language for .NET 3.5

    Foundations of C++/CLI: The Visual C++ Language for .NET 3.5 introduces C++/CLI, Microsoft’s extensions to the C++ syntax that allow you to target the common language runtime, the key to the heart of...

    Visual C++ 2008 入门

    My objective with this book is to teach you the essentials of C++ programming using both of the tech- nologies supported by Visual C++ 2008. The book provides a detailed tutorial on both flavors of ...

    Visual C++ 6 For Dummies

    What you do need to know is how Visual C++ can help you with Windows programming and maybe a reminder now and then of how the syntax of various C++ statements work and what those ...

    仓库管理系统 visual c++6.0

    AppWizard has created this DMS application for you. This application not only demonstrates the...This file contains a summary of what you will find in each of the files that make up your DMS application.

    Programming_With_Microsoft_Visual_C++_.Net

    this book is designed to help developers who are already familiar with Visual C++ discover what's new in Visual C++.NET and learn how to use the language and their programming skills with the Windows ...

    Visual C++课程设计案例精编(第二版) --第三章 系统进程管理器的开发

    // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SHOWALLPROCESS_H__928B7E87_BDF8_4C4F_84D3_AF4D921C3CF8__INCLUDED_)

    professional visual studio 2008

    Professional Visual Studio 2008Microsoft Visual Studio 2008 is the latest version in the ongoing evolution of the Integrated Development Environment (IDE), and this resource examines the diverse ...

    C++ under the Hood--Jan Gray.pdf (learning sbout c++ compiler)

    Such knowledge dispels the fear and wonder of “What on earth is the compiler doing here?”; imparts confidence to use the new features; and provides insight when debugging and learning other ...

    Using LUA with Visual C++ (Introduction)

    Scripts give you the possibility to change the behaviour of your C++ programs without any need to recompile your program. A real world example would be game programming: you only have to change the ...

    Visual C++做的连连看小程序,适合新手

    Visual C++做的连连看小程序,适合新手入门使用,自己做的。

    Visual C++课程设计案例精编(第二版)--第六章 电子邮件发送和接受程序的开发

    // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MAILSERVER_H__CB181B60_A7D0_4663_B1F4_A97F7F2B9BAB__INCLUDED_)

    SML VCL Package (Cracked)

    SMLPack is a suite of multilingual support components package for Delphi & C++Builder. It can help you to make your application support multilingual user interface. It is a real AUTOMATIC tool for ...

    迷宫游戏的c++源程序

    This file contains a summary of what you will find in each of the files that make up your maze application. maze.cpp This is the main application source file. maze.dsp This file (the project file)...

    Mastering Windows 8 C++ App Development

    You'll discover how you can harness the power of the new Windows Runtime with C++ combined with XAML for the creation of fantastic user experiences. Starting with coverage of C++/CX (a set of ...

    C++ Without Fear 3rd 第3版 无水印pdf 0分

    Now updated for the newest C++14 standard and the free Microsoft Visual C++ Community Edition, it will quickly make you productive with C++ even if you’ve never written a line of code! Brian ...

    Visual Studio 2015 Cookbook(PACKT,2ed,2016)

    Visual Studio 2015 Cookbook will introduce you to all the new areas of Visual Studio and how they can quickly be put to use to improve your everyday development tasks. With this book, you will learn ...

    Visual Studio 2012 Cookbook

    Visual Studio 2012 Cookbook Paperback: 272 pages Publisher: Packt Publishing... - Get up and running with the C++ comeback in Visual Studio 2012 - Tackle how to work with DirectX in Visual Studio 2012

    Qt5 C++ GUI Programming Cookbook(PACKT,2016)

    Therefore, improving the visual quality of your application is vital in order to overcome the market competition and stand out from the crowd. This book will teach you how to develop functional and ...

Global site tag (gtag.js) - Google Analytics