7 x! J# ?2 D2 G& j$ @9 C9 D0 n0 G: _3 \ java就是最先看到这种情况,他用jvm实现了平台无关用内存回收实现了稳定健壮.但是 ( h$ ~7 K& j \相当多的c/c++程序员抱怨java太慢了.的确即使到java2速度仍然是一个大问题.我曾经 0 x+ O& E: G4 i2 w
是一个c/c++坚决拥护者在许多论坛里和java程序员打笔仗.但是我逐渐意识到面对与in ! p8 i% e% s: A/ l2 e" y
ternet平台而不是特定的操作系统的时候java的速度问题往往是一个小小的瑕疵.我们可 . q! N' R/ Z( Z8 Q3 M- j- n Y0 Z
以想象那一个电子商务网站会用我们手头的pc做服务器,他们不是sun的e1000就是ibm的 : D: `1 H; p/ b2 A L1 k9 Qrisc6000.在这种平台上java这点速度问题只是a peice of cake.程序员只需要专注与商 1 z3 \5 L5 ~( C' h: \1 P
务逻辑的编程,而不必要关心数组是否越界,对象内存是否释放更不需要关心是不是unix 5 ^. g: Y2 x) J, @, C5 b7 @和windows的系统调用不一样. # R8 d$ u+ W/ t 5 S; L- U8 k$ B, O; x1 |* w
微软的c#可以说是一种java与c/c++的杂合体,他可以回收内存,可以平台无关.但是 6 Z- G8 i( z5 q& Z) j! R
, Z" t2 D9 J# [' ~3 ? 他又可以实现一些java没有的功能譬如在标记的程序段内用指针自己管理内存,可以实 + n, e! R+ T: B/ L4 x现操作符的重载等等.为什么要这样做我想也许c#还肩负了一定的面向操作系统开发的任 * s) ~( u2 `% V$ W% i+ k9 c8 k9 H务例如winform.他基本上的思想和java类似,但是实现的方法又不一样他不通过jvm解释 b( U, [: j5 f+ u- ?0 o# p
中间代码,而是吧源代码编译成p代码然后通过CLS库和JIT在平台上及时编译为100%的本 ! r; H7 M& G+ V5 L# A& u, p$ b地代码来执行.他的pe代码是独立于平台的,但是cls和jit却根据不同的平台而设计.因此 4 k0 l% A! C/ u0 Y; F# s! A9 qc#的平台独立有点类似于c/c++在不同平台上的移植使得c#比java来的更快.而且微软还 8 y+ S/ G* O0 h4 y6 a
许诺cls和jit不仅针对c#还可以针对任何语言譬如pascal,smaltalk,basic因此将来有可 }% V/ y* ]5 Y- o9 e( T
能所有的编程语言都是可以平台无关的(ms真是毒,所有的语言都平台无关java还有什么 ! x; I3 M& O0 K# A' ^/ b优势呢,据说ms正在开发基于pascal smaltalk的asp+). 5 d: p, B+ f3 \& a# Q3 S 6 e2 h9 f7 |! ]! V
xml很多人可能认为与html相类似的语言和c/c++,java,c#完全不在一个档次上的语言 # D# l1 I6 `/ K0 d1 J" k& B/ r/ G.其实不然.我们知道不管是c#还是java都是通过统一地层计算来实现平台无关.那就必须 1 r" ~, z) ~7 V7 r" n在性能上付出一点代价.而xml却能够实现不同的语言之间的调用.譬如说一个网占用jav , K: z$ ^ d! f( y% x+ }. d- h
a用bean实现一个出货功能,另一个网站用dcom实现一个入库功能 .如果这个网站需要实 }) d" v2 Z) A( b) L9 I
现b2b,用一般的方式就是在他们之间写转换程序.而xml通过标记语言来描述各自的借口 # N. Z% O( K/ B3 A& N/ ` A特性.两端通过解析xml文本来实现互相的调用,无需任何中间转换程序 . L/ m( R: Q& ]! d. O: s: n ; ?4 `, i( G! t$ K! I: E3 G
只要一张xml文本就能实现bean和dcom之间的通讯(要说清楚其中的机理,需要很多xml ' Y* t* l$ o( G4 N概念如果有兴趣可以到msdn.microsoft.com/xml或者<a href="http://www.s3c.org" target="_blank" >www.s3c.org</A>去看看).目前ms的.ne , M- P, C8 y2 s$ o6 P7 m
t中最核心的技术soap就是完全基于xml的远过程调用. : V" [' O* X1 [: A6 ]
: N m1 ]+ p2 u8 F$ S
介绍了那么多可能有点跑题,其实我最想说的就是21世纪的程序员应该从面向操作系统 3 m [1 ]( \- Z: X, K的传统方法中走出来,学习一点如何面向Internet平台编程的技术和概念.不要在无畏的 . ?) t, T% @3 k- G; G1 ?那种c/c++工具好之类的地方争论.我想不出一两年不管是bcb还是mfc都要淘汰, % [. J" E1 T! N* T$ M) l5 n+ E2 T 8 [/ K! v: k- w1 M
到那个时候要争论的不是bcb好还是mfc好而是c#好还是java好.至于xml那是不管sun和 # `' K4 u* b7 j
ms以至于世界任何大的IT公司包括Intel,hp都在奋力研究的技术,不学习可能就要被淘汰 ! q3 T5 ?* J! w7 D" J.至于c/c++可能就会沦落到现在汇编的地位在某些系统效能敏感的地方还能见得到. + W5 W' E) u* F# [4 m0 Z / y/ J% B+ p4 y3 E
如果是编程语言的初学者那么我建议学习java同时关注c#,他们首先比c/c++简单没有 9 `; ]& e1 Q: B& X! M) a% [
复杂的宏,指针,摸版等等让人摸不招头脑的概念.而且是完全面向对象,比c/c++的半调子 ! {4 D0 @# ^$ W' u9 b" ^4 p面向对象清楚的多好学的多.(我推荐目前学习java,毕竟c#还没有发布而且刚发布的bet - [6 S; Y( u) h
a版的编译器要求高的吓人需要win2000 adv server没有128M内存的别想跑.话说回来c# 1 r* E* t, F, U1 M& Y6 u: Y和java一摸一样没有什么太大的区别学好了java将来的c#将会信手拈来) - \' H- u1 |9 |, d0 @
+ C3 M0 i, A6 _$ o# C3 B
对于目前的windows下的编程者来说学习mfc的价值还是有一点的但是不是太大.至少可 - S i, }; U3 M; I
以熟悉windows内在机理.但是我还是推荐关注一下c#将来的windows.net都是基于c#而不 # g* ]' G2 Z. f! i9 c, y是mfc.而且c#要比mfc简单的多实现一个同样的windows桌面应用c#的开发速度是mfc的两 0 L) f) X; i0 z1 \到三倍而且几乎看不见性能的损失. visual studio 7.0中 vc将是一个次要的开发工具 4 m. C2 c0 o- n
最主要的开发工具就是c#和vb7.0.至于borland我想是不可能不跟着ms走至少windows平 ( y& x( K' a6 w; A台上是这样说不定明年就有一个c# builder出来作为borland的主打产品而不是c++buil " b# ~: K# @6 v
der了.说一句玩笑话wenny说不定很快会把这里变成<a href="http://www.c#help.net" target="_blank" >www.c#help.net</A>了 ; w4 Y0 U" w w0 w1 c. y
/ ^/ P$ G! I, C' M3 _" p7 @+ k$ G ) e* g% [0 ~% n1 ]" G( \/ j, ? 4 i. }1 O. S7 @4 J I+ @( B
8 Z& Q8 d) Z: E( }+ t: P: i
! i3 C. k" A& v9 J# ^ zhangxiuyong 来自 <a href="http://www.ucancode.com" target="_blank" >http://www.ucancode.com</A> : 2 y5 G k8 h4 t5 i3 z- c
) i5 ~( N: _$ c) R8 c6 |
其实我认为,对于Visual C++本身的理解不是向你上面谈到的那么简单,Microsoft 9 m# l) W4 b8 Z3 x3 K
在开发Visual C++的时候是希望为其开发人员提供一个可靠的开发平台,便于用户可以 ' d8 @' ~* D: h; Y
为Windows上面编写各个方面应用程序,包括:数据库应用程序,硬件驱动程序,网络程 * B( Z$ }% Y+ J3 I7 i+ H" Q序,多媒体程序,游戏程序等等方方面面,试想如果一个开发平台要同时完成这么多个 3 }; q7 I; W [, G方面的开发任务,是需要考虑多少的问题,因此Visual C++在设计的时候就考虑了提供 1 E. W" A* S C' O一套类库而不是直接提供黑匣子式的开发组件来完成开发任务,提供的类库MFC具有很灵 * i4 h0 Y5 g/ f" d" c6 P. r活的设计结构,以及良好的继承性,同时配合DVS文挡视图结构来组织程序开发,虽然我 : ]# n5 l6 c. |2 e. y. q
们承认利用VC开发程序(数据库方面的程序)没有其他的RAD开发工具来的快,但是如果 + `* F6 Q* H: q, A. z8 a
你真正利用VC来开发的话,你会觉得你不会去选用其他的开发工具的,对了各位听说个 % v" o0 [8 m0 k5 J多少开发人员是从VC熟练的开发师转向VB,Dephi的开发工具的吗,当然DVS结构本身也有 3 \2 [* N1 j# W3 \
其很大的弱点,如很难重用。同时在CView中再嵌套CView的变得不可能。不过对于开发 ) s5 y/ z, a' [, W" j中小型的程序(代码在50万行以内的程序却是可以的了)。对于特大型的程序我想最好 ! Y* r6 O) h$ g' l可以借鉴一种新的技术叫做MVC的开发技术来组织你的程序吧。好了各位此些文字,仅代 ) s% [* ]: `' e2 p4 K
表个人之言,如果各位感兴趣可以到:http://www.ucancode.com上面看看。 4 e2 b/ h* I& x, j) X3 N
6 Z% J0 j2 R% I3 w9 x3 d zhangxiuyong 来自 <a href="http://www.ucancode.com" target="_blank" >http://www.ucancode.com</A> : + j+ ^7 E- g+ ?3 W9 }, ~# {
% P: l8 \+ }$ v; L, d) s/ n
其实我认为,对于Visual C++本身的理解不是向你上面谈到的那么简单,Microsoft n6 s4 p( ?4 W" c* a; o% M在开发Visual C++的时候是希望为其开发人员提供一个可靠的开发平台,便于用户可以 2 o+ w2 I$ `: e' I8 t
为Windows上面编写各个方面应用程序,包括:数据库应用程序,硬件驱动程序,网络程 3 f2 P# [% T. f: ^- _/ |1 U ?序,多媒体程序,游戏程序等等方方面面,试想如果一个开发平台要同时完成这么多个 " M/ J& S5 u3 [/ H t9 ]
方面的开发任务,是需要考虑多少的问题,因此Visual C++在设计的时候就考虑了提供 # |( O4 {9 h! a: N2 @一套类库而不是直接提供黑匣子式的开发组件来完成开发任务,提供的类库MFC具有很灵 j$ c' H7 ?$ P3 A$ x' Q ?4 [活的设计结构,以及良好的继承性,同时配合DVS文挡视图结构来组织程序开发,虽然我 # G( D5 G; W, \+ P1 A: ~9 \们承认利用VC开发程序(数据库方面的程序)没有其他的RAD开发工具来的快,但是如果 7 I( C+ L. k* Z# d
你真正利用VC来开发的话,你会觉得你不会去选用其他的开发工具的,对了各位听说个 T% u$ N0 L3 d
多少开发人员是从VC熟练的开发师转向VB,Dephi的开发工具的吗,当然DVS结构本身也有 , j: ]6 S0 F# M" W( A# Q( L
其很大的弱点,如很难重用。同时在CView中再嵌套CView的变得不可能。不过对于开发 , V! J0 [% N9 S! b; p
中小型的程序(代码在50万行以内的程序却是可以的了)。对于特大型的程序我想最好 0 x+ k& U: ]# M+ t
可以借鉴一种新的技术叫做MVC的开发技术来组织你的程序吧。好了各位此些文字,仅代 4 c% H) }& N3 Q. m表个人之言,如果各位感兴趣可以到:http://www.ucancode.com上面看看。 , d% @5 X( T* C0 s, R 0 X ]9 P9 ]% s9 q( T zhangxiuyong 来自 <a href="http://www.ucancode.com" target="_blank" >http://www.ucancode.com</A> : 0 h6 ~1 ~& w. y. l( J+ h $ z- y" K3 @ D. X: N9 r( \ 其实我认为,对于Visual C++本身的理解不是向你上面谈到的那么简单,Microsoft j. b. p8 G6 Z. B6 g+ k在开发Visual C++的时候是希望为其开发人员提供一个可靠的开发平台,便于用户可以 % x4 O1 _( _+ G# Y0 {2 ~为Windows上面编写各个方面应用程序,包括:数据库应用程序,硬件驱动程序,网络程 : K4 J3 N* u7 D# ?% G序,多媒体程序,游戏程序等等方方面面,试想如果一个开发平台要同时完成这么多个 1 }- z5 v. Y9 q' A, w4 Z( t
方面的开发任务,是需要考虑多少的问题,因此Visual C++在设计的时候就考虑了提供 5 d! M; w; I m$ ?一套类库而不是直接提供黑匣子式的开发组件来完成开发任务,提供的类库MFC具有很灵 ) B1 i) o5 O$ t# ?
活的设计结构,以及良好的继承性,同时配合DVS文挡视图结构来组织程序开发,虽然我 " [) D4 |1 K& i4 s们承认利用VC开发程序(数据库方面的程序)没有其他的RAD开发工具来的快,但是如果 7 r m7 S- N# }' |5 e* Z T* r
你真正利用VC来开发的话,你会觉得你不会去选用其他的开发工具的,对了各位听说个 - ]4 _- L. R6 X% X6 M
多少开发人员是从VC熟练的开发师转向VB,Dephi的开发工具的吗,当然DVS结构本身也有 ! {% `+ f& ]4 A3 V/ U) ~
其很大的弱点,如很难重用。同时在CView中再嵌套CView的变得不可能。不过对于开发 - j* [7 p0 O1 k8 L; d1 Y中小型的程序(代码在50万行以内的程序却是可以的了)。对于特大型的程序我想最好 6 G2 n) V4 ^* {9 `1 i7 \$ |6 H# G
可以借鉴一种新的技术叫做MVC的开发技术来组织你的程序吧。好了各位此些文字,仅代 ) r7 E% P+ [0 e3 K& s+ z
表个人之言,如果各位感兴趣可以到:http://www.ucancode.com上面看看。 , M. m% U: u0 H, Y " V0 ?/ A" F5 Q4 W# r1 X$ n+ X wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : / G1 p3 j' D1 Q$ V4 ?& m 1 r, v8 b) \! J
我一定程度上同意 恶魔吹着笛子来 的说法, 1 ]) [* @. D5 N' P# `2 z
1 q. T) f5 v( D8 Q- ]
毕竟VC开发速度是比较慢的, " I0 J$ s* d5 P' ^8 P6 z+ p/ K2 Y
3 q: T% Y- D' u/ Z" x! s8 J 而且硬件速度的大规模提升也为使用JAVA开辟了道路, 6 F3 R/ R) a2 C% ~+ l: G
2 y' L* O+ G2 n4 _& D- o
不过microsoft.net的目的是一定程度上改变MS的经营性质,和开发关系不是很大,但 8 R+ f5 I# Q, K/ B, b4 S8 c是MS的一贯方针都是在平台上为开发人员提供方便, / E) _* i3 K4 C8 s
, T( k( ]+ E: r7 F4 Q9 ^2 J4 ` A 所以C#是为了.net服务的。 * n) l0 ]+ Z6 L9 H
* s: s, Q, t. p ' e% ?. h+ X' H) ^& R {
此外我想我没有精力再搞个c#help.net了。:-P & E2 `3 X9 {& n9 \
& m5 E9 K0 \3 }. Z
果子 来自 http:// : }0 r( t1 Q4 \# N# p) H3 Q) e ( ]' v6 F& n/ v- k2 e; c+ k
"恶魔吹着笛子来"是比较“前卫”的一类程序员。我就听业界的人多次说过JAVA也是 0 F- h9 U1 l$ g% m/ E1 l" U J0 U
8 R1 {4 _0 F: `! }
, E, D' j! n$ X" C9 w j' K, k
个吹得很响的东西,但实际如何,大家都看得见。至于认为C/C++开发工具(VC, - O, a' R) }/ K) P$ b 0 q B5 B+ B5 w5 y1 Q* o/ p
BCB等)会在一两年内退出市场,就是无稽之谈了。 0 b. }8 f. [$ }( {3 b) a
4 t: ?) w2 l+ z5 K1 w" a Wesley 来自 http:// : v" ?' t3 b7 W8 h+ v c6 { & w* l }/ \ Z1 ? l: Q: R8 X
恶魔吹着笛子来,你的观点很有启发性。能不能写一篇或推荐一篇剖析、比较Java开 & i2 Y! |- W# C( E0 u2 {) Y
发工具的文章?比如Visual J++, JBuilder,以及Symantec和IBM的对应工具。(可能和 ) x4 d: E1 U: B
本站的初衷有些不合^o^) 1 t; E$ _5 o+ U, Q$ k2 ?4 J. l
8 u7 c& S7 n4 _ LeoCN 来自 http:// : + V" @9 c ]) c; h
- I7 }+ y3 U ^/ ^5 T* a- d( x. j It's not a time for us to determine which language will more better! ! D: N" L& U6 t8 z& Y* y$ {( @' D- I . Y- x9 T, Y$ h) h) }4 _* G8 k in factly,In China,too many corporation just writting some codes for ' P- F* i3 s% o) q9 K- A9 X
1 }5 Q& O2 t1 v' @8 H9 O* f& A& k
enterprise's MIS,OA,ERP or other application.It do not need so speed . E. t0 d: K" H* @+ {' w' o `' @
; e$ T/ [$ h# N
and do not need so good original code. just want more data,more easy and m ' n, h5 @3 W: o6 ?5 p& k, E' b
ore quickly. 6 u4 T; R/ c3 f) N7 s; b 6 W9 F$ O M9 s' e/ i# ?
so c++ is not a choice in such enviroment. and u know,many codes we write 1 B0 B- }, X* G. X, ~7 gtoday will be useless.and there r so many easy tools such as VB & |% h* w* B3 C' l % |3 z/ S. V) u' ]: y* N t
for windows designer, Developer/2000 or PB for database,Domino Designer fo ; S+ k4 ^5 L* e. W" o: v
r OA application,why c++??? * H) T. W0 f7 h; s8 X0 y
) z5 c9 d- [ J in DOS mode. i like Turbo c2.0, with it and MASM i can do everything. 2 ?. Y M5 q1 `1 s* D : j) l& x) \/ \- i but now i hate c++, it has waste my time! my corporation do not need ) A5 B' w; t* u& h9 t
9 u% h7 M V ?+ Y( l c++,just need java,xml,php,pb,vb,delphi,developer/2000,domino designer etc * }1 n" |& x- a- O! r, ^, ]8 q
. ' n. @( B/ J4 j( F; f
# ^0 |9 A$ I" k1 J5 G8 C so, a tool is just a tool,if the advantages in some aspect of the tool . O3 p3 w% X8 F. y1 A
$ W5 w* k0 o7 Y4 c
u needed. it's will be a good tool for u. others it can bring u unfortunat 5 l; r( U9 y: v) }1 Mly! 6 t5 f7 G& Y6 ^8 i% @2 C
' }$ R3 t; X9 {$ n' w
恶魔吹着笛子来 来自 : ( J& U: \9 ?7 P. l/ l% x/ x - B2 l" e- {4 ]& o; ?( M
果子,国内的Java应用不到10%基本上是ms的天下.这些可能是由于中国软件业规模太小 4 i6 ^5 T# a3 s% B的缘故.而在国外40%的商务系统的开发都是Java,c/c++不到10%.譬如BEA公司一个有3个 0 ]8 P6 ^ \& C: z" O
java程序员创立的公司开发了第一个基于J2EE的Application Server---weblogic.BEA公 5 f6 r4 N4 i( k. R司依靠weblogic在短短4年里成为世界第四大软件公司仅次于CA公司.可见JAVA的功能是 9 j4 \+ X" X, K. x" P如何的强大.微软的.NET的负责人说,你们想要知道.NET是什么样子,那就去看看JAVA.JA 7 `, C" ]7 L0 F( r P$ V2 C9 p
VA是什么样子.NET就是什么样子. & h- P& q3 f. p2 m
( ~% y& ]) K- B2 B8 a 3 Z/ @, y( z( J( q. m o+ u8 V
' P" S" ]6 S+ ]8 i
恶魔吹着笛子来 来自 http:// : 9 K$ s& h d# c
/ N7 M; d" ?* {# b Wesley你好.关于Java开发工具的问题.从我的观点来看,目前的Java开发工具没有一个 ! n+ m0 D8 z1 R B0 ?* l令人满意的.最主要的是,在技术上考虑的太多,却不像MS的开发工具考虑到程序员的方便 7 f) \. R* c' J# x/ h(vj++是另外一会事情我后面会讲). 4 J5 G$ \ |8 H" H: K" a
9 U* ^; K# e' {2 r. ?. a
基本上流行的是sun的jdk,ibm的visual age for jave,samtic 的visual cafe,和bor 4 G/ t q4 T3 K4 ]1 d& Y" x6 _
land的jbuilder(vj++基本上没有什么人用). ( Y" J2 W7 b. Y/ i% P/ I
5 k+ w7 T! R; h& v 在这几个工具来讲,jdk是老大哥,但是仅仅是一个command line compile.在某些方面 ! x% O' u* Q4 E1 O
用ultreditor+jdk会比较方便,譬如你的机器的配置比较的低(memory<64M).一般来说,几 " F7 U" p) ?5 T6 j9 M5 T乎所有的Java工具需要的机器配置都比较高. 3 q D2 D2 N4 a8 l, r* x % P, Z. \7 o1 f1 Y% O$ p" _ V# @
visual cafe是第一个可以使用的Java IDE工具,我当初学习Java的时候就是用这个.它 g& R3 s- u c
的配置要求比较低.一些比较低的版本譬如1.5 2.032M就可以使用了.但是现在最新的版 ) f4 A, P; t; T/ P本5.0的要求就比较高了,可惜2.0以后的版本没有用过.cafe的IDE开发也不是很方便,懂 * u. p3 C( e1 e e& B/ q
一个窗口西一个窗口比较的乱.而且bug还很多.有的时候trace到一定的地方 ) { a* ]/ K! H. {& c4 R; p8 B# Q 3 E9 V" K; m. y& u/ ^ 就会crash.samtic是一个系统安全公司不知道为什么cafe却那么不稳定.而且从技术上 , X' M4 v. v9 z7 X, O2 K7 Q0 U/ w来说到目前为止还没有完全支持java2.更不要说j2ee了.从帮助来说cafe的帮助基本上还 C0 x) f" w2 T& s# D6 y$ r/ j是jdk的帮助没有什么特别的地方. % i1 R( I( m8 b1 j& ? 2 m8 r1 ^6 g! {, |1 x5 B IBM的东西往往是吹的比做的好.visual age很复杂功能也很多.支持100%pure Java和 |2 ^1 q2 ?* h% D# b; y/ G. lJ2EE.但是使用起来不方便,当初为了设一个class path找了半天的help都没有结果.后来 0 t2 S7 `* T1 C/ Z" o& \* v" \7 `1 R听别人说要在nt下面设置环境变量才能成功.而且与其说是visual age还不如说是comma . [1 S6 k+ Q( y% A3 ~8 S
nd line套了一个windows壳子.做application还要自己写layout代码更本就不visual. , o, S% n6 b1 i, D$ u6 h ' P3 }* z3 ^2 [ U/ D) b Jbuilder是我目前遇到最好的一个,它的界面基本上和delphi c++duilder差不多.他是 0 r, L! n2 o7 E# g1 \% Z2 g第一个真正的java的rad系统,第一个全面支持j2ee 13项Java技术的工具(bean,jsp,rmi 0 Z& t; W/ G" l: |+ Q7 D! U; Y
都实现了).100%的pure Java.相当全面的help document. . ^' N* g9 F- ~4 R. q
6 x3 a8 Q; l+ x( g8 H
但是他最大的缺点是系统要求实在高,没有128M别想用.64M下面慢的像乌龟,help更本 0 e3 y6 Z6 ~' L不能开(它的help都是java写的64m下面打开help慢的能够看到一格一格awt画窗口的过程 ; R# p5 T9 W6 \* E0 j# Y).但是不管怎么说他是一个比较理想的系统. 3 T# ^ x3 Z* @* m) D+ z0 d4 Y. k $ U- S4 _' E' `* N+ s
至于visual j++.MS更本不是想用他来打开java市场,而是想用他来分裂java.从很大程 4 Y" H, c" X* U: E度上来说vj是一个windows 程序的java开发工具他不是100%的pure java.在windows平台 , L/ H4 p: w1 J \9 v$ M. k, X( q m8 S
上他是最visual的.用他开发application,你不必用复杂的layout,只要像vb一样填写坐 8 T1 o' F3 K4 g2 G v/ P5 V
标,而且开发的windows程序速度很快完全100%的本地代码.你可以把它看成java版的vb. , x4 Y. }4 L' q5 o: Z, Q, ^% |! O! ~
他的wfc库仅仅在windows上能够用,而且使java和com捆在一起.他自己开发jvm,java库. # I# Z b% Y( ~
但是ms污染java的策略相当的成功,不仅把java逼的走投无路还在法庭上赢了sun的java ; y6 d- B$ Q1 `) k官司.因此ms的目的一达倒就把vj便卖给另一个公司而且随着c#得开发和得不到sun的j2 5 r; d. ?. ^/ E) E2 f/ aee的许可我想ms不会再开发任何关于java的工具.如果你开发java的同时还想使用ms下的 + v; I9 d; {. u1 xcom,ado那么vj可以适合你的需要. - `$ I# A4 w- Y& R2 o( O
& T/ m) r( k! k. _/ }5 W' X* q
0 Q$ F9 g" i$ s' O$ T 6 w: O, _- }1 F5 B" T3 `$ U : k5 Y. [. F! z# J g 0 ~* E; B L, J0 G+ ? 5 i4 |; w! D) e- {6 q2 e$ ~ - M# f* Q0 y7 A3 P % }" Z1 I* \) r% {) ] chenxiqi 来自 <a href="http://chenxiqi@yeah.net" target="_blank" >http://chenxiqi@yeah.net</A> : X+ H, n- S9 n) c$ D$ h# F' [
! d* x3 u2 o$ ]: p' P VC++开发数据库软件确实比较慢,可有许多软件只能用C/C++来开发,如果VC++退出历 % x- x" v* V8 B1 r+ y; c0 V8 d* a
史舞台,那岂不是说只有数据库软件才叫软件,我想世界不会如此单一。 ! x' \1 f& `$ Z4 h. T V9 g( B$ j/ x; B$ Q0 Y% u) [ ; k4 Q' A" |5 [1 E zhangxiuyong 能告诉我什么是MVC的开发技术吗 # j; e% B3 @) M. ^. x" c0 ^! r . g; w+ \6 c( Q% ?1 j
恶魔吹着笛子来 来自 : 6 C; d) e1 R) F% T2 _ 0 D2 @2 G! T7 O7 M9 n4 e7 l% ^ 什么样的的软件只能用c/c++开发? ! g* r3 o3 h- _/ z0 B
$ g# x' `/ z" p$ p& p 操作系统?apple的OS7,os8,os9都是PASCAL开发的. $ V2 g8 S# S# z. u2 L2 _
" w6 W* ^7 K7 m" D) g
数据库?oracle8i就是JAVA开发的 9 e4 d' T3 o; x6 \ 7 C3 e: \) k9 U
游戏?你也许没有见过用DELPHI开发的<笑傲江湖><风云>,甚至有VB开发的<神龙教> 7 }# f- g8 d9 ?% _: V y
; e& \9 J3 M8 ?5 |4 N8 O! B1 b 同时VB7.0全面支持direx8.0.可想而知游戏的难度会大大的降低吧. 4 |5 |: i* K' C5 g G
7 b$ i# n/ D- ^
MVC=Model, View, Controller Design Pattern 4 \, [$ }# s" m) n0 e0 [' G, z$ y
" t, O, i/ |9 B9 \+ ~0 w5 t' F
! e9 b6 [1 R8 T: r7 S: |: i
8 F; Y+ o3 W1 D+ D; w
恶魔吹着笛子来 来自 : - W. Y0 D" v0 Y7 D( z \; D* L. `7 f6 g5 K
什么样的的软件只能用c/c++开发? 8 |/ _5 V/ F/ G
7 A, X3 _7 H5 B$ I3 b
操作系统?apple的OS7,os8,os9都是PASCAL开发的. 4 J# W- Z9 f' z$ H7 @5 E; ?, m( z
5 k% \& T6 M7 J8 K4 ~% Y8 s: i- A
数据库?oracle8i就是JAVA开发的 " n& l% D) f. g
8 z6 H. h2 v( Y# I$ Z F) }2 G/ {8 j; Z
游戏?你也许没有见过用DELPHI开发的<笑傲江湖><风云>,甚至有VB开发的<神龙教> 3 N. L: S: l8 k. R 0 h6 }+ U/ u; ? H0 H2 Z/ X6 M
同时VB7.0全面支持direx8.0.可想而知游戏的开发难度会大大的降低吧. 8 w7 n0 [# m% F
% U# Q& X) ^' m" Z5 a6 K& S 我的意思不是说c/c++会消失而是应用的范围将会大大的降低并且将会进行脱胎换骨的 : F( C! d# p# N4 Y, E: j' m8 _: n
升级(用了20几年升升级总可以吧,java的升级不算太成功,但是是一个不错的先例我想c & ^2 W: ?+ |! `4 O- K7 Q#的前景会更好). ?/ x6 D( W# g; o
( s: t$ P5 m% h) H0 \8 E/ T . E3 F2 I' z( ~ 5 e% h8 ^! y5 V) i, o' p
xubin 来自 http:// : - o1 u) |4 ?' T- E' v6 O( o) V
) p0 U' W' j1 g# Y- h7 m, v
在工业控制中,直接对I/O地址操作,就要用C++。 $ G/ y- ]) w1 X* m; R. ` . D- C. U1 F9 b- p) G/ W+ q
恶魔吹着笛子来 来自 : ( C% S! C& B# i+ n
# I8 y% n" d3 r
俺有一个同学毕业设计用VB做单片机。你这不是在讨论问题是在抬杠。 : Z0 q* P/ ?+ e
( L3 p2 z- o: ^2 p4 N/ F h
wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : 5 o) n. Q* H. n$ ~& b0 ~. W 5 h5 E7 \$ D1 c4 I' n- g 我想一种语言并不会因为其他语言的出现而消失, : W7 C4 p2 ^3 m! c0 w : m! e, B P: Q& M# S 比如说c与C++,C++与C#的关系。 $ A, o9 D. D) Q9 B7 h$ s
, V# J" I& O3 j- R5 G: G+ D 所以我想讨论问题时首先是要排除敌视, " g) M, T) T q! _) X+ T
$ B J3 _* H) U% Z0 S7 b7 n 然后才是透彻的分析。 6 f- K" C0 B, T( s+ t
% o( |% H' v3 m1 x IT世界不光只有网络,还有其他很多。 2 M8 J2 g2 o2 r4 ?- K) E+ _( s
2 R1 x& i, j( ?; i 所以某些工具在一定范围内适用是正常的, ! V* J5 p/ O B- g0 ~ {6 F6 _
: h% G# k& m! b3 I2 _. B7 [ 其实在国外, A+ E' Q7 P7 x; P 4 a' `2 _/ X; c( l. ^
SERVER端软件大都用JAVA,而CLIENT却没有多少用JAVA, # r4 x) R3 w5 a0 U, T$ u! N3 P8 \' {0 _ 0 D: P9 k# ~: p3 B3 Z9 e7 L
这和速度有关,当然也与MS对JAVA的态度有关。 / ?; e- F9 c% m( z
" z" e0 h9 S3 N% M' G 6 k2 U% e( f2 N$ J 不过我一直认为C/C++不会因为JAVA的出现而消失。 % w- n2 i) G, B& Q# }
7 z) ]# l1 o) h$ s
就象COBOL目前为止还在使用一样, 5 \# h) r5 q/ R: }7 q" [ 2 ^* }* {; u5 @; `0 r3 l# P 9 l# e" [ U& q. B! p 不过以后会有愈来愈多的解释性语言出现,因为解释语言比编译语言的兼容性好,这 & d! f3 D$ P% i' D& L* @
是不得不承认的。 3 D4 S" e* t1 m8 r5 D( Z / _. d) N8 N j* x
恶魔吹着笛子来 来自 http:// : ( @* E8 B" L6 x8 r) T2 z$ D & a4 t% b# {1 w, S5 |' S: S 是的wenny.也许我说c/c++的消失有点夸张化了,但是实事求是的说.java和c#的出现 8 N$ g. L! G E3 ~; u2 Z
$ K) n9 f: A0 Y* z% p c/c++的升级换代是在所难免的.对么. / H" G z; M7 X) _, k6 [
) s; x, d, m3 b, i" M$ e0 E 恶魔吹着笛子来 来自 http:// : : ^9 W8 |; ]9 J; \8 Q4 e 6 s& @$ D& X7 X, Z4 W. ^, i 而且我一直认为java和c#不是另外一种语言而是c++的升级.就象是c到c++的升级一样 4 ]0 k* b% }& E
.对不对. $ n/ T" ?: i9 f9 M9 V 9 j. H4 h- w$ r+ C8 e$ b xcc 来自 http:// : 5 i* r3 |; X0 k* x' a# E 5 Y! K" a; d: Y; v1 l
同意恶魔吹着笛子,你简直是我的偶像,顺便贴一篇关于C#和.NET专访 , X. Y0 W/ P1 c& b) d( f R! C 5 M3 J7 f0 T q6 S( Z8 z NET and C# Questions with Jeffrey Richter " ]2 u9 u; u# v3 q6 O' a7 R ' c1 K/ J; X7 O7 t
In the weeks after Microsoft made a huge splash in the development communi / q) C; }% A, T4 h# a0 D- s
ty with their .NET and C# announcments at the July 2000 PDC, Jeffrey Richter ) Z7 c" x/ h! t: j accepted our request to field 20 questions from our readers about these new $ h0 o. K0 V( W; \- L# D. b# |
technologies. As many of you already know, Jeffrey is a cofounder of Wintel - F- ]5 ^# x" ]! Alect, a company that specializes in Windows & Microsoft.Net training and deb + X2 y, X' r5 W3 J0 {) T. Z. e
ugging. Jeff is also a consultant at Microsoft working on the Microsoft.NET ; Z5 M/ }- c: U, L6 n3 d
Common Runtime Language (CLR) team in which C# and Visual Basic 7 applicatio * K1 o0 y) B) u* N/ ]3 I
ns operate. Below are the 20 most popular questions that were sent in and Je . T) g+ @) [9 `1 p
ffrey's responses. 2 ~# Q/ D3 t" d9 W0 X# D( G& j6 ?
A4 _% O7 i7 l8 d! s For Visual C++ developers everywhere still trying to get a handle on all t J* V, V M% E: r
his: Thanks Jeff!! 4 h/ q! L% m( Q. p1 J - }, i5 O) i1 H& F4 }' [
6 O. ]5 K" @& O* K2 v$ K
Question #1 Is .NET a runtime service or a development platform? $ A3 s: }. g8 x. S% P2 } & T b6 V7 _7 i* y h5 u$ l Answer It's both and actually a lot more. Microsoft .NET is a company-wide ) R1 T9 T9 T3 v: x
initiative. It includes a new way of delivering software and services to bu 3 c9 V0 L7 Y% {8 G* F, i0 Jsinesses and consumers. A part of Microsoft.NET is the .NET Frameworks. The ; z$ k. U, `. c9 X2 [7 i6 H& C7 Vframeworks is the first part of the MS.NET initiate to ship and it was given . w) T8 }# i* `; O5 P( K out to attendees at the PDC in July. The .NET frameworks consists of two pa " H. s. N e, E) Yrts: the .NET common language runtime and the .NET class library. These two ! [1 w6 l3 F, l1 d$ O
components are packaged together into the .NET Frameworks SDK which will be $ k% `0 W7 L/ Xavailable for free download from Microsoft's MSDN web site later this month. 8 ~& |7 N$ j& r4 ?( M+ G In addition, the SDK also includes command-line compilers for C#, C++, JScr ' `" X$ W9 S) E6 ]
ipt, and VB. You use these compilers to build applications and components. T 4 q* o* h0 z* t" e' _) Q/ w1 m$ these components require the runtime to execute so this is a development plat 8 E. E. C8 D% M
form. When Visual Studio.NET ships, it will include the .NET SDK and a GUI e 3 I2 h" ]( d! v7 _4 J! h/ e- Qditor, wizards, tools, and a slew of other things. However, Visual Studio.NE . R: k0 h! T) b% W1 YT is NOT required to build .NET applications. % S- @) M' |% u0 x8 y. Z6 e% v
( D1 f k, l S c. r
+ _0 `+ r Q& O7 `( b/ g' T$ H% P
Question #2 How likely it is for C# to become a general-purpose (meaning: " m4 [ b& C* c9 \2 M! E
not MS-specific) language and if so, have any other vendors committed to pro ( s9 g/ r/ y, K0 ?/ j; @8 M: {( L
viding compilers on any non-Windows platforms? " u& A! \$ Z! P4 J- h7 }: c
' b4 o! {+ o+ n Answer It's hard to answer this right now. I have been programming in C# a ! G M$ I6 \% C' n2 x. c
lmost exclusively for about the past year and I love it. It only took me a f + V3 A( H9 I' m8 K, S* T9 w
ew days to learn most of it since it is very similar to C++. It was designed . I& i8 h# L% h( E; M
to compliment the common language runtime and I think that it's unlikely to + a0 B- A. F: Q/ p9 j gain much momentum if decoupled from the runtime. However, you never know. 7 G- C3 q$ F7 [: \- ^+ Q$ ZMicrosoft is submitting C# to the ECMA standards body so any company will ea & x) _3 u. ?, \3 Q& V! rsily be able to produce their own C# compiler however, without a runtime, th ; ]1 b( @! R6 ^8 C8 d' N8 H }e compiler itself is not that useful. I'm not aware of any companies current , D" X$ i2 n3 \- kly working on their own C# compiler. Certainly, porting the runtime to anoth T% T' H1 w* y* O6 s. Cer OS is no small undertaking. 6 {: _# D' u7 i) }
: C+ v$ l& ^1 Y5 f
/ ^! M9 x/ C+ l9 o* @- Q2 s Question #3 Can you tell us specific practical problems that C# can fix be - H. I4 \ `; s1 `- x
tter than Java? / V+ ?: a5 |( d+ H
! c8 b1 w% L9 A. g4 [8 ^, `
Answer I must be honest with you: I have never programmed in Java. I know 8 q* q# Q; Z0 _8 y' R& z( jwhat C# offers the C/C++ programmer: simpler syntax, components that seamles D2 h; S& J7 V8 O" y3 `, }. |
sly fit together, type safety, and so on. Other people should be able to add ! h# } x$ P, g) W" E
ress the C# <-> Java comparison. 9 [/ ]' k& f0 I9 p [. r3 r/ j 5 z1 Q L i- p! L9 h) B ) b' V# @* [. o* A* P8 l; Q3 [; f Question #4 Will ADO+ be the preferred and most efficient method to access 6 p/ t) Y9 m6 p databases from C# or will it have it own (or .NET) class wrappers for the O # U" n# M0 _/ M( [: _" e4 NLEDB API? 6 u5 m$ R: S: T+ u/ R. [+ p
( r+ m: `, ]1 x& G
Answer The .NET class library includes a System.Data namespace with many t / G& Y3 M+ M2 i1 | i- ]ypes for database access. These wrappers will be the best (and most efficien 4 J t, y! Y8 o0 f$ x4 ?
t) way for a C# programmer to access data. 5 k2 s8 v1 @( I2 d1 x 2 Z8 B2 n5 i# |$ r) e2 \% W# C( S9 z
# l! x* U+ c+ {; Z
Question #5 Can C# be used to develop Windows applications or is it soley + K- Q& N: K$ N1 H) Dused for developing distributed applications? , D1 w L3 m5 l9 V - f2 F( j# m( w) ^6 P, {* Q$ b Answer C# can absolutely be used to develop classic-style Windows applicat * ^: u" t8 a, B; [! e6 h
ions. Actually, this is more a function of the runtime, not the language. So ) ]' o$ I* i$ C6 {, the runtime supports console apps, GUI applications, NT Service applicatio 8 L1 M. C. [3 q0 ~
ns, simple components which can be used in applications, web pages and so on 8 \! ?4 d9 U& `9 e+ i. You can't write a device driver but that's about all I can think of that t # ~. t2 j/ J* y- J+ R3 Whe runtime doesn't support. 8 B3 s+ y1 a( R9 h, E / W9 k/ |$ h# |: V0 Q) s5 p
y7 g7 |3 {9 D& t6 Y" M; ~" n Question #6 What is the C# relationship to WinForms? : R, [7 X3 R4 _) |
4 S" u- J# \6 J' B6 Y8 T
Answer Win Forms is a set of classes in the .NET class library that wrap W 6 N' V& o! I" X$ C' K2 {
in32 windows, brushes, pens, etc. Any language targeting the runtime (includ 0 O; n7 d0 o1 \8 ]) d, n* Q7 @& A& A
ing C#) can construct instances of these types and manipulate them. This is : t' e* g- l7 x8 T: k, {0 Q
how you would create an app like Notepad, Calc, or Wordpad. I know that Win 2 E! w; D$ x8 G% E$ ?
Forms has similarity to J++'s WFC library but I also know that there have be 2 i; p# l4 L9 [1 a0 ~6 Yen some major changes. ( B& `7 D ~, \8 i1 @ # E- ^4 R+ H$ ?; W& K) b
% P; B* ?' Y( X; Q- T Question #7 Rumor has it that the C# language has been submitted to the EC : c; n2 \& g! R) bMA for ratification. Is this true and what impact do you see that having on 6 V0 ^; ^$ @5 v pother companies adopting it as a general language (such as C and C++)? 2 Z; G7 u% ^$ ^
# _6 X0 |, D9 a1 {/ Y% r4 |
Answer Yes, it is true. I pretty much answered this in question 2. q/ e2 C: x; r4 c
+ y0 ]; X% p0 f# d1 L
: {7 q: z, t+ L8 x0 V Question #8 Which will be the role of ATL and COM in the new .NET technolo G# u+ Y8 r, R8 [2 V) E; N
gies? ( k( U5 p5 b6 i |/ X* b
6 k+ T$ C8 }! u) z% a* c* i# j
Answer The .NET frameworks offers a replacement for many existing librarie 8 A1 W. z3 f5 R* \" Ls, like ATL, MFC, C runtime library, standard template library and so on. .N * T$ p6 o! F; ?0 U6 I" V
ET programming is significantly easier than using any of these older technol # R, F! ?# I& F. J+ J; Eogies. For this reason, I suspect many developers will move away from using ( c8 u( x5 O7 n$ ~6 Gthe older technologies. The older technologies can buy you performance howev # L2 {3 S |! ?0 v8 k6 ner; so, some people that are very concerned about this will stick with what' + y6 n" W* j# ts around. As for COM, developing components with .NET is orders of magnitude 7 f1 u! J# }' C g easier and the interoperation between components pretty much happens for fr ' A. T3 ` v+ Gee. Again performance may be an issue for some. And, for the time being COM+ 7 w( K: h3 L5 p! @8 { services, like transactions, are not being offered directly to .NET code. Y 3 B0 r! u+ g* [% I4 Q L$ a
ou can still access these COM+ services but .NET code must incur an interope - D2 w% p; `" o4 ~9 xrability transition, which translates to a performance hit. , }, c: E' c, J" w% I: i x5 ? $ D9 J6 V( F+ G+ [* c; _) ~) d4 N ) Q# s! _; W/ o* ^; S5 ?7 v; R6 d
Question #9 Why was the templates feature not carried over from C++ to C#? 9 R* Q: v8 R( F* r/ l 6 n/ ^: Q7 c1 `0 k0 H( j% x& I I # Z: I' |. D- n
Answer Again, this is more of a runtime issue than a C# issue. First, temp % h- _4 Q. J4 w% clates are difficult to implement and Microsoft choose not to do the work for - k* A. q. i2 Q8 I$ q' m Version 1 of the product. They may do templates or something similar in fut / g0 w# p Y! q4 y6 p. z
ure versions. Second, since the runtime is a multi-language runtime, introdu 6 y% o- ~( R; p" ~# H# D
cing templates means that all languages targeting the runtime would be requi ) |8 j- j: G8 A
red to support templates in some form. There are a lot of issues here that n $ C+ v& o3 i2 O0 s5 n4 seed to be carefully considered. 6 E( N2 V, d6 l) I( R+ R3 _ 6 Y) w/ {- `! E( }8 X8 V U$ o2 O . z1 X" N) `- t Question #10 Will C# replace the pseudo keywords that clutter ATL COM code 2 R. _/ S0 |6 v; Z: g" m: v with real keywords? Examples: OLE_COLOR, BOOL, VARIANT_BOOL, and DISPID_XXX 8 Q6 S& q Z- U$ s0 \/ Z
XXX. 4 n% ^* s8 V* b1 k# V2 ^ 0 w& B; X. I2 C% i) N
Answer Absolutely, all types have new names as provided by the .NET class 5 ?9 @& H( p+ k+ N! m
library. 1 ?# h0 c& `5 |2 b 5 Z0 ^. B! E4 m9 L! t # R# k# }/ {& v% v Question #11 We've seen managed extensions, but aside from that, what futu 0 r9 |/ K) G2 d9 D* f" O: G, Tre does C++ have at MS and in .NET? 6 E0 x. O8 p) [; j1 E1 O+ q 3 A6 Q" M8 N& H( F Answer C++ is unique in that it is the only Microsoft language that allows 4 z, N- K) K. j% S the developer to write managed and unmanaged code. So, I can easily see dev - h: x- u2 ]/ }, j! r7 F+ h( K
elopers writing in unmanaged C++ for performance-critical algorithms and the 7 D+ m% e% {- \5 v0 s6 {n using managed C++ for type-safety and component interoperability. I'm sure 8 n) a4 W- g' e) z! m; t6 v
Microsoft will keep C++ going for years to come: device drivers need it, Wi ; ~9 N" R; @- H7 l5 kndows is built with it, SQL Server< Exchange, and other BackOffice products - O2 i4 c" V" p! V. D6 Vwill probably use C++ for a long, long time. - r# {9 @0 ^: a" V 3 k9 {+ z4 `8 `! \$ f
* t1 x9 l( z5 q0 d& {
Question #12 If .NET supports ActiveX/COM, how will security be assured if 1 B6 M, b) ~ O- _$ }5 V a C# application runs from within a browser? @" X% G0 s; K: F 6 {' X* D! z, [( f* ^5 W5 s
Answer The .NET runtime offers code access security, which allows an admin 7 c% j2 H% d4 M; fistrator/user to configure security based on code identify. By default, any 1 w7 d% ~5 ^' H6 e" j$ t/ o0 Xcode downloaded via the Internet or intranet is untrusted and will not be ab ( o3 C1 S# d" ]
le to access files and other resources. In fact, when I build a console appl 3 l9 `# [ v5 X. m( E' t6 P1 H2 fication and run it from a network share, I get an exception when it tries to , Z) x z% ?+ d access certain resources. If I copy the same file to a local disk directory S$ f* e$ U& J- V2 `( F and run it, it runs fine. Code access security is integrated with the runti ) f8 M( I5 _( y2 s
me and is too deep a subject to cover here. ) y1 @: |3 \% Q, t- i
9 I/ D3 g' N9 Q$ ]8 h$ O/ P 3 d9 u: H$ \- q9 F7 Z! Z3 n$ { Question #13 With regards to the .NET runtime, do I need it on the machine : i3 b+ g% m: [7 p0 ^ that I deploy C# apps on? Y4 W% Z+ s/ O P, Z - e% O8 u, a" p1 P+ C. W7 E7 v! P
Answer Yes. All managed apps need a manager; the runtime is the manager. M - q7 a0 a* U4 l4 N; c5 gicrosoft will eventually package the runtime so that it is freely redistribu ! \6 S. E: r2 Uted. For now, end-users will have to install the full .NET SDK from MSDN web . L7 N: X) m1 W; b/ f7 F
site (when available). This is similar to how VB developer must ship the VB $ {1 R; D7 d# X4 v runtime today. ' h' c3 X% E9 y" I9 B2 I% n" S/ L9 t , ?6 `4 r @! M! @/ b, }( d , l( V( x4 X/ S3 R& ^
Question #14 There has been mention of being able to derive C# classes fro ! e. Y. J0 T# X( n6 e j0 Q8 xm VB classes. Is this true and where can we see an example of how to do this 6 e; {1 g! u+ q4 d? ) z6 H& e/ j$ G, m3 z$ ^& @) k % O( v# M' B2 g- v* q+ K) C$ j
Answer This is true. In fact, any language that targets the runtime can de ( v/ ~2 a) \; y6 j) `rive from any type created in another language. Also, the Visual Studio debu 2 d& a: p% X# ~! ^1 ^, {" Vgger fully supports debugging across languages. Each entry in the call stack 4 A, ~4 V1 j3 y1 f( D" j% W7 i window shows the function on the stack and the language that the function w / m0 h4 h$ w1 a4 ~0 ]) m( @+ R/ Y. [
as written in. This is very cool and got a round of spontaneous applause whe % A" _) H' Z3 t+ Q8 |
n shown at the PDC. There are samples in the .NET SDK that demonstrate how t . [* l$ R' p6 F6 V6 \
o do this. It's really quite simple. Actually it just happens, there is noth 2 n# {! s" k3 King for you to do. You can also throw exception across language boundaries a ! s% k* v: z; }3 Z. u# x
s well for error handling. 2 |8 |. @, j8 j7 g" U( ? Y / _6 U. h* j, o( n
/ G0 i' L( z2 v) x& ?2 M" q Question #15 Can I derive a C# class from a C++ class? If so, how? . y* a( L. H+ T0 s n4 f! } : g* L1 w! r% F; d+ Z2 ^8 f
Answer Same as the answer above: Any managed language can inherit from a t $ _0 L6 O" @/ M! ?# M# C- @* {1 h
ype in another other managed language. If you use native C++, then you can't + L7 S+ q2 `) |, h5 } do this, however. # A" V1 I+ x$ a/ Z , G9 c0 H' m' N % l0 J4 x# v7 E- Q1 ]: W
Question #16 Will the new version of MFC have the option of working in a m f1 h. c+ P3 i0 v
anaged environment? 6 I0 u4 a, F% O" `- _
; I1 U5 @1 K2 l0 D
Answer I haven't been tracking the new version of MFC but I'm pretty sure ' q3 Y. X, S9 othe answer is no. MFC is all unmanaged just like it has always been. For man 3 E9 k( N! {" u) v8 F* D
aged applications, Win Forms is the window manager that people should use. 4 s- W6 g8 Z' o2 g/ r8 t9 O! [" N
$ K5 Q: f! Z) ?& P/ l% p
' r; u) n% {6 g \7 I. ~
Question #17 If the new version of MFC will operate in a managed environme , T! f" u. I' D7 B4 P% f
nt, will it have the option of building desktop Win32 apps and not needing . 2 G2 F- V `+ K+ WNET runtime support? 7 t4 [ G$ g: P E$ ~% P
; T- m1 L: I; d: i2 K% m4 k Answer I'm pretty sure MFC is unmanaged and will never require the runtime % c, B- L) r8 N, b
. # b5 I; O, @, W5 [. M3 H 9 {) d; ], d% d! Q" C 5 b1 T* f+ A, z3 Q Question #18 Stroustrup has been quoted as saying "I have not expressed a 6 w. h# t' ]/ N& L" G% M" G6 _& Q
technical opinion on C#, and I don't plan to do so. C# is yet another propri $ h* U( V9 }1 x" v# m) v8 _# R" Jetary language specialized for Microsoft's Windows system." Do you agree or - X; f- G5 I5 v2 m9 q) n% u
do you think C# is more of a generic language open to other platforms? 4 _$ ~6 R. j- p8 ~$ d / M% F* l* q4 m% Y; ~& z) h I
Answer C# is a language designed for the common language runtime; not Wind 5 P' U) j: z4 E$ F, M* a- ^ows. The CLR can be ported to other operating system like Linux and Solaris ' W y, M2 B' T! r( a0 i* \! qand if the CLR is there, then C# will probably be there as well. In the gran 6 s) d u) L% P
d scheme of things, C# is not that important or interesting. It is a syntax % X: I X5 r/ z) e- O4 t6 i* g: X
checker that spits out intermediate language consumable by the runtime. You ! }% b- I6 N+ f: } n( z
can love C# or hate C# - your choice. I happen to love it and think is the b ( @8 V# H: m( P1 ]( W$ V, X
est programming language for the types of applications I write. 7 ?& M9 E) ]. e' h4 a c3 }8 v2 s3 g
2 e% y: L. Z2 w+ S6 a$ [$ Q, A6 @ Question #19 I heard a rumor that VB7 will allow static linking of the run , S- L4 H' P% L' P. ?, N8 F0 U
time, like MFC. Is there any truth in this? If so, will C# also be able to c 7 c+ K% A* v4 Z: _/ D/ D; Greate standalone apps? / m/ H$ n# B$ d: Z4 x l$ z# O4 [7 T4 N3 B7 m: a) ? Answer This is absolutely not true. No language will able to statically li 2 N, _3 G# k( r, o
nk to the runtime. $ _* _' G) F% _ I8 P2 Y$ X, p! D6 @, W( |
5 {& P, F' }2 f& n1 l0 G' G7 d Question #20 Does C# still use resource files? If not, what mechanism is p 9 l* \8 Z9 _- L& l. t$ y1 Vrovided to allow for localization? # u& G2 Z/ s7 }% r 4 v: C1 i/ Z" o Answer The .NET frameworks designers have created a new resource model. Re 2 `0 F4 V2 X+ n4 j! m; {6 }/ d2 t& o" B
sources can be embedded in EXE or DLL files the way Win32 resources are or r + z4 P) t; A" Y3 J4 S0 w
esources files can now be stand-alone files like a single jpg or bmp file. T % u1 k* U6 E0 h! |/ y6 p; g
here is also the concept of fall-back cultures. If the Swiss German resource : a0 |2 j# ]# T* J- ?1 I
can't be found, the runtime looks for the German resource. If the German re : N9 E* [4 j) M2 F9 @' k b8 K# q" K2 W$ esource can't be fond, it looks for the "default" resource. Each language wil ; k/ ^7 C/ [6 c
l typically be built and shipped as a separate assembly rather than packagin + u! E8 E0 |5 l% }6 d
g everything up into a single file. Like code access security, a full discus - r- n7 O# l0 G
sion of the new resource model is too much to put here. * @/ ~( }% G$ [3 \+ k! m