' S1 A$ T \5 K1 w! O" F 我一定程度上同意 恶魔吹着笛子来 的说法, ( C7 W1 ]. x: t0 B+ W , D7 X% F; D% W2 s" B 毕竟VC开发速度是比较慢的, " H( _. g) e2 C0 T1 ~( O & \+ a: {' u3 E3 G& h
而且硬件速度的大规模提升也为使用JAVA开辟了道路, # n! i/ A+ n+ ?2 O. w! X# f3 i
_4 \$ e+ {& F) B2 O. C7 I8 C
不过microsoft.net的目的是一定程度上改变MS的经营性质,和开发关系不是很大,但 " p+ Q1 x) t0 N# G5 e7 h% E1 P
是MS的一贯方针都是在平台上为开发人员提供方便, " s/ Q4 e) @& i1 j5 h$ h
! t# m3 ] Y/ r, b8 x& v. a% z% \
所以C#是为了.net服务的。 & d& G% `) L" m1 H2 u7 e
4 g& @& c. ]( P* V9 ]
! c" B2 `: c$ P& J- v! Q
此外我想我没有精力再搞个c#help.net了。:-P # ]7 ~1 q+ z7 N# ~2 Z- _ : A! s4 y" e3 ?5 O 果子 来自 http:// : . F# [5 n+ ^6 y& E0 F9 |
) N$ L2 K" r* g" U0 K
"恶魔吹着笛子来"是比较“前卫”的一类程序员。我就听业界的人多次说过JAVA也是 3 D& w; E! y z7 r
5 G5 y- p/ s1 W ' m: z7 @# \/ T8 C 个吹得很响的东西,但实际如何,大家都看得见。至于认为C/C++开发工具(VC, # H- l. t( A) O( @: v: e# d
/ |2 n/ u0 Z# i- [
BCB等)会在一两年内退出市场,就是无稽之谈了。 ) W' O8 {( N! @3 M" e/ O 7 A! i- q4 y& G" C3 E
Wesley 来自 http:// : d$ r: g! J4 p% i # ]" }$ r' q6 l 恶魔吹着笛子来,你的观点很有启发性。能不能写一篇或推荐一篇剖析、比较Java开 # M" k: Q) {8 U/ M+ N发工具的文章?比如Visual J++, JBuilder,以及Symantec和IBM的对应工具。(可能和 1 c1 y+ v& b; D0 j/ I4 o, _1 C
本站的初衷有些不合^o^) : C& f! Z; C8 j% W
* M) F7 c; f& l d9 j0 p$ [
LeoCN 来自 http:// : 3 _0 X1 o1 t, z: s ( G$ {! g& H) {$ a. O7 q
It's not a time for us to determine which language will more better! + R! v2 k5 v8 u+ k/ A
0 V* N" ?3 J# c$ j( h' l in factly,In China,too many corporation just writting some codes for t; y0 V7 A/ t( B/ @' I; Q
8 I3 r g0 H& e, W enterprise's MIS,OA,ERP or other application.It do not need so speed + H# M! D* \1 c3 S + n( Y- d% [6 G, g9 B2 h6 Z
and do not need so good original code. just want more data,more easy and m $ G7 m+ F/ X. a& `: \0 j' K2 Uore quickly. 6 s8 p( w6 N! i' o) b3 i
# u2 o, q! a; {( a' ^ so c++ is not a choice in such enviroment. and u know,many codes we write 8 T( L S' O3 r/ a: Z
today will be useless.and there r so many easy tools such as VB & w* o% n* ]3 c& R9 v 2 R9 u* W' O8 r for windows designer, Developer/2000 or PB for database,Domino Designer fo ) w! r1 j% [4 P! Z. [$ q, k
r OA application,why c++??? ' A% Y- D( z- A9 F
9 `5 O6 j/ ]1 n4 e5 b3 [0 l% Z in DOS mode. i like Turbo c2.0, with it and MASM i can do everything. 4 @$ ^/ S6 F" ~ c, w# O9 n# n9 Q
( Q# t4 o5 H p3 e5 j B
but now i hate c++, it has waste my time! my corporation do not need ' I* G. H9 {9 ?( y# c
( |; \( C- l# w- e5 S m c++,just need java,xml,php,pb,vb,delphi,developer/2000,domino designer etc ' l `) G0 _* g% O. # j6 }; i& i5 h 0 {. K, n; i+ `6 s; K so, a tool is just a tool,if the advantages in some aspect of the tool " K! u; [2 ], d i% }3 O
( x" y; {$ \- V, E- n) l6 `' B u needed. it's will be a good tool for u. others it can bring u unfortunat ) u. `9 B2 `; e# W4 }, @0 J
ly! 8 E( p {# P! g4 P
' T# G7 C% T6 T. {8 U 恶魔吹着笛子来 来自 : 5 Y* R; H) }7 i- N
' x. }2 [9 B I. P6 A; r! u
果子,国内的Java应用不到10%基本上是ms的天下.这些可能是由于中国软件业规模太小 $ e3 r/ ?6 \0 W4 p2 R3 T+ F
的缘故.而在国外40%的商务系统的开发都是Java,c/c++不到10%.譬如BEA公司一个有3个 4 W7 q1 h1 t. n' Q' jjava程序员创立的公司开发了第一个基于J2EE的Application Server---weblogic.BEA公 - k) H" U1 c4 ^' J- Z( ]% X8 }1 s0 g9 P- g司依靠weblogic在短短4年里成为世界第四大软件公司仅次于CA公司.可见JAVA的功能是 # m( D0 G7 a0 O6 P. l d如何的强大.微软的.NET的负责人说,你们想要知道.NET是什么样子,那就去看看JAVA.JA * o% B! G7 r) \8 E, \- xVA是什么样子.NET就是什么样子. 8 ?- H- t) Z2 d4 w i2 ^ ( k0 w# q: l7 w0 q! |; D " {4 D1 X1 K6 J. i* S, e1 H @
8 S2 |3 i) ?$ |$ u/ m- R
恶魔吹着笛子来 来自 http:// : 1 L4 D5 q& p6 R( C" w , ^* x% \0 o+ a; R5 Z+ M+ n
Wesley你好.关于Java开发工具的问题.从我的观点来看,目前的Java开发工具没有一个 " @7 h! y% U0 ^令人满意的.最主要的是,在技术上考虑的太多,却不像MS的开发工具考虑到程序员的方便 : w4 T+ ^. q/ W7 j4 K9 l# B(vj++是另外一会事情我后面会讲). 4 D* C* G' x4 w S- a
# ~3 A! r+ X; X1 y5 i 基本上流行的是sun的jdk,ibm的visual age for jave,samtic 的visual cafe,和bor % O& R8 R% K; Z9 R2 O
land的jbuilder(vj++基本上没有什么人用). 9 b6 r% F& O% t9 U
v" c" n/ W! L 在这几个工具来讲,jdk是老大哥,但是仅仅是一个command line compile.在某些方面 4 r( U7 {6 S" `6 e; N6 p
用ultreditor+jdk会比较方便,譬如你的机器的配置比较的低(memory<64M).一般来说,几 7 F6 @2 ]$ _ \ K, c
乎所有的Java工具需要的机器配置都比较高. + a' U$ O' Q9 r4 Z- I6 { + L' w2 \, a. x6 t3 H: _. k
visual cafe是第一个可以使用的Java IDE工具,我当初学习Java的时候就是用这个.它 ; f# {: r5 {' ^. f5 m
的配置要求比较低.一些比较低的版本譬如1.5 2.032M就可以使用了.但是现在最新的版 2 r: t& V$ O/ c8 P! A本5.0的要求就比较高了,可惜2.0以后的版本没有用过.cafe的IDE开发也不是很方便,懂 # o V: l2 }3 e% H/ a4 k
一个窗口西一个窗口比较的乱.而且bug还很多.有的时候trace到一定的地方 : V' \! O$ E3 j. Y
! l$ W, B& x4 F3 @6 b% O0 H4 j
就会crash.samtic是一个系统安全公司不知道为什么cafe却那么不稳定.而且从技术上 ( [% q2 i! g! u& H. U来说到目前为止还没有完全支持java2.更不要说j2ee了.从帮助来说cafe的帮助基本上还 ! s! \& Y& o7 D5 U/ L
是jdk的帮助没有什么特别的地方. # A# n) ~' `8 L* ]; y4 k
5 a1 p. v& e4 ^; ^1 T/ u8 w6 [ IBM的东西往往是吹的比做的好.visual age很复杂功能也很多.支持100%pure Java和 7 |/ p1 j2 V( }: I! y1 u7 k; DJ2EE.但是使用起来不方便,当初为了设一个class path找了半天的help都没有结果.后来 - B0 Y @. l" H5 F. K) a
听别人说要在nt下面设置环境变量才能成功.而且与其说是visual age还不如说是comma 6 j/ x, O0 c v3 v% _, ~+ f, W
nd line套了一个windows壳子.做application还要自己写layout代码更本就不visual. . x0 R& |4 r1 m! Q
! u$ ~% N2 i# Q$ I Jbuilder是我目前遇到最好的一个,它的界面基本上和delphi c++duilder差不多.他是 $ C4 T6 n( n( I6 T# ^: R
第一个真正的java的rad系统,第一个全面支持j2ee 13项Java技术的工具(bean,jsp,rmi $ _8 J" T/ O# X3 |) G$ p' K3 ^
都实现了).100%的pure Java.相当全面的help document. + k3 R" D/ \* l2 u, u6 B3 q' e
' B3 z1 S+ r2 x1 M0 `
但是他最大的缺点是系统要求实在高,没有128M别想用.64M下面慢的像乌龟,help更本 % K; h0 t1 Q7 Y1 H# f( x: p n$ D不能开(它的help都是java写的64m下面打开help慢的能够看到一格一格awt画窗口的过程 ; @9 o. Q& q2 ^7 P/ Y' ]# O
).但是不管怎么说他是一个比较理想的系统. ( P( A3 d" D9 t( P( ? : H) |, Q+ \6 y# s
至于visual j++.MS更本不是想用他来打开java市场,而是想用他来分裂java.从很大程 . t! ^1 i9 e% F/ G# t5 I, d7 U度上来说vj是一个windows 程序的java开发工具他不是100%的pure java.在windows平台 0 G" g& Q- {5 S
上他是最visual的.用他开发application,你不必用复杂的layout,只要像vb一样填写坐 0 f; L/ [% u3 M( P标,而且开发的windows程序速度很快完全100%的本地代码.你可以把它看成java版的vb. 4 L9 ~" o) v# S; H3 ]7 Y; n4 A: ^9 t他的wfc库仅仅在windows上能够用,而且使java和com捆在一起.他自己开发jvm,java库. 0 Y8 A9 b O4 u9 q' Y; k, w! z但是ms污染java的策略相当的成功,不仅把java逼的走投无路还在法庭上赢了sun的java : |0 N6 R. {. o/ c
官司.因此ms的目的一达倒就把vj便卖给另一个公司而且随着c#得开发和得不到sun的j2 ( R) X% O2 d+ O; w; u
ee的许可我想ms不会再开发任何关于java的工具.如果你开发java的同时还想使用ms下的 ) Q" C+ _' K5 x3 S. {1 s- K
com,ado那么vj可以适合你的需要. 8 I' @3 g2 _' S+ P% `' V% g % }8 T5 _- H: ^( F
3 f: N; D7 U0 L/ P# Q 7 Q* s( k" l# r. A8 V. t! N" y6 x7 Z
6 j$ I- o- U2 ]" O8 }- L
M% a$ ~9 [% t8 T) j7 i) E . g# a% |; l M$ @8 G& r : k5 H$ ~6 F* O& z- G
- {9 d/ N; Q4 R7 B" _ chenxiqi 来自 <a href="http://chenxiqi@yeah.net" target="_blank" >http://chenxiqi@yeah.net</A> : 9 }: e0 O* {; d; U, K$ V ! ?/ `' b# w9 E5 w- w VC++开发数据库软件确实比较慢,可有许多软件只能用C/C++来开发,如果VC++退出历 , g( p% ?5 Z! M, f( L! y, Q$ b
史舞台,那岂不是说只有数据库软件才叫软件,我想世界不会如此单一。 / N4 q" s- U( ~+ k2 y* x
6 F# z1 D+ o7 @, s! } 9 y" S0 ^! V5 F$ o
zhangxiuyong 能告诉我什么是MVC的开发技术吗 8 a1 G0 r. ]. d; r- s& J 2 h" N* E$ a9 {
恶魔吹着笛子来 来自 : * S. k% E6 y! `% g6 c* u$ s . t, L o+ ~/ } I* B S& o5 G 什么样的的软件只能用c/c++开发? % q" a% l" g: B) ~ & a7 J8 Z. H( y4 b$ @ 操作系统?apple的OS7,os8,os9都是PASCAL开发的. 3 z( E; }! O+ J) P$ }
$ A, Z8 n, z$ O4 m3 k7 T; v 同时VB7.0全面支持direx8.0.可想而知游戏的难度会大大的降低吧. 5 i8 O/ a% ~) I
. Q! R5 h$ J ^
MVC=Model, View, Controller Design Pattern ' n8 U/ e) R2 o g. T6 b ! Q. |" ~' }. z
}9 i; h6 I, v( H 2 Y! R4 f' c$ h 恶魔吹着笛子来 来自 : ) C- _% | T/ v; d0 l * S+ ^" }4 z2 m- } 什么样的的软件只能用c/c++开发? , h/ H5 A& |: L+ O. f
) s) E ]; M: e7 h: L+ E 操作系统?apple的OS7,os8,os9都是PASCAL开发的. ) {% x$ g" W$ ] 2 a9 X2 |7 R0 I. R! w
数据库?oracle8i就是JAVA开发的 # G- D7 b9 P9 u6 t " {1 J) d1 W9 O2 R2 k ~
游戏?你也许没有见过用DELPHI开发的<笑傲江湖><风云>,甚至有VB开发的<神龙教> * l% W8 S) s) R5 m
/ W; w+ _1 o9 [9 v9 H7 V# e; k
同时VB7.0全面支持direx8.0.可想而知游戏的开发难度会大大的降低吧. ' v. p* S7 q2 x2 p ' { j1 l/ }8 E! m' \8 [) O+ f4 \( t
我的意思不是说c/c++会消失而是应用的范围将会大大的降低并且将会进行脱胎换骨的 6 x2 } v# s/ n6 t+ |升级(用了20几年升升级总可以吧,java的升级不算太成功,但是是一个不错的先例我想c x1 ]9 a M* `8 t- B @0 M#的前景会更好). / b. t F K6 p# O( y
, [- @& ]9 [( t8 W
BTW: 2 V+ ^& u- G0 j 5 K" T7 r9 Q: n3 k8 u MVC=Model, View, Controller Design Pattern & h# ] v7 _: z4 D X
D& P% U: A% J4 o3 X1 S- y+ B
5 Q0 z4 ~/ k L# H5 b+ q
7 G# \+ t# c' Y+ a0 P4 v xubin 来自 http:// : ' A. ?3 i) k: `8 g8 |2 c( f / \! \# E1 s$ D* m. W 在工业控制中,直接对I/O地址操作,就要用C++。 + k/ A2 l& s/ `1 f; |+ @; {" s 7 y% }$ Z; `3 |0 _% s. v: A" p$ [ 恶魔吹着笛子来 来自 : , T, o n0 I- f: k( t / D) T( Y1 c2 N" v. {& R
俺有一个同学毕业设计用VB做单片机。你这不是在讨论问题是在抬杠。 : ]9 i9 T7 _2 o7 \5 b) P
3 V& w) f$ o/ g6 Y2 V- E wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : 1 N, r. Y4 t; U1 ?6 N& J
1 V* T. a: S% t3 r0 ]
我想一种语言并不会因为其他语言的出现而消失, / y5 D, s) x0 U: ]* O, A, |
8 d4 F: Q9 Q+ u" @/ _- E
比如说c与C++,C++与C#的关系。 ) b. E* o( e @( U8 J' u# \- G( h
K2 q& ~- u0 m+ c8 Z
所以我想讨论问题时首先是要排除敌视, 4 x7 l3 _5 P+ P 7 q+ e" p5 J" |0 y 然后才是透彻的分析。 9 l4 Z0 u3 F0 g; e$ k; e
2 m+ {% |- |! e! d IT世界不光只有网络,还有其他很多。 6 C/ d9 `3 B" [( b
3 c, j& u: z! ~, V U8 c/ b# ^- h
所以某些工具在一定范围内适用是正常的, ' l; }4 m5 Z6 Z! P1 H/ g9 G" t ' T2 L# I! L: u& a( G' S
其实在国外, / |1 u) b5 }0 i! Y7 H, \5 z+ ]
1 f" J4 G& M4 U! Z3 @* @7 L
SERVER端软件大都用JAVA,而CLIENT却没有多少用JAVA, L6 v4 D& L6 m* | 7 u+ W [3 E! G0 K1 E* A 这和速度有关,当然也与MS对JAVA的态度有关。 ' I! }6 x' _5 q2 ?
. J) q9 a5 E* k" ]7 O0 l8 j* t
7 b6 L5 r% S+ n" _/ }3 \ o0 w! Q
不过我一直认为C/C++不会因为JAVA的出现而消失。 , W) r# g% ^& z8 t 1 Z9 |& P+ U' `0 u; [: D" X7 N* {
就象COBOL目前为止还在使用一样, p' f# ~* P+ _0 n( ~ " c$ |9 h0 o/ q " M4 J7 @6 b) _2 t
不过以后会有愈来愈多的解释性语言出现,因为解释语言比编译语言的兼容性好,这 5 t& x o w( ]' }- y! P
是不得不承认的。 $ V0 R" }8 K* C4 N ' z% U3 }2 Z# p7 j' Q; K6 `' X
恶魔吹着笛子来 来自 http:// : + J, n! }6 X1 O$ t# O, J, M; S" v- l
1 z6 {3 n* A: ~! U, w3 z; n
是的wenny.也许我说c/c++的消失有点夸张化了,但是实事求是的说.java和c#的出现 7 s/ P, i" i. ^& w6 w " S8 u, y6 k7 p- J2 t7 l c/c++的升级换代是在所难免的.对么. , ]9 R3 B# b$ j' Y& ? 9 H8 q+ U/ a D- F9 z 恶魔吹着笛子来 来自 http:// : , \8 s/ h. ~# M) U" R5 _8 m2 X2 ?& u3 s
# k0 h& {% S' I0 T: K
而且我一直认为java和c#不是另外一种语言而是c++的升级.就象是c到c++的升级一样 " \' W0 \9 j' ^
.对不对. : K) R# {' c9 y0 [9 R, m 4 S+ w8 \/ K/ C( M D
xcc 来自 http:// : ) s7 }, ~3 w: i, X
. L, D4 W: t: h6 [* L6 d# Z& ] 同意恶魔吹着笛子,你简直是我的偶像,顺便贴一篇关于C#和.NET专访 4 ]( P6 \/ a$ x+ F# u- f; c$ q 5 g7 V6 w7 R5 w! ?- F
NET and C# Questions with Jeffrey Richter ( ?9 _9 R) q9 X( L( V; }" v; K
6 \+ d* b6 B% B- r* N
In the weeks after Microsoft made a huge splash in the development communi ! p1 O9 v5 x/ n& j' Q5 _( B5 T
ty with their .NET and C# announcments at the July 2000 PDC, Jeffrey Richter " @6 [! W$ `5 H( s8 t. c
accepted our request to field 20 questions from our readers about these new / V1 o) O9 ?" k: E. t# g technologies. As many of you already know, Jeffrey is a cofounder of Wintel ; G9 X/ u* }; }/ \% c( H2 s' `
lect, a company that specializes in Windows & Microsoft.Net training and deb 6 E0 U1 W. e: P+ C2 k2 U H
ugging. Jeff is also a consultant at Microsoft working on the Microsoft.NET - Y& ^1 m" d# R2 Y c
Common Runtime Language (CLR) team in which C# and Visual Basic 7 applicatio 1 m$ B' |5 L W2 p Xns operate. Below are the 20 most popular questions that were sent in and Je # F6 Y6 ]. O2 U0 T& affrey's responses. : n: C* Y( G" L# k, c) B
/ X( v- f5 f# }3 L4 { For Visual C++ developers everywhere still trying to get a handle on all t / O; u" I7 d, r. q+ b* ^3 F/ c# i
his: Thanks Jeff!! d# g: C9 }( w: z, c' c! t ) p8 \6 Q! q) `9 V4 q
8 P5 d0 V) o7 {! r7 r" t; P Question #1 Is .NET a runtime service or a development platform? 7 ]& }: Y1 a8 h0 t 7 E' T" t, S* h5 I8 D
Answer It's both and actually a lot more. Microsoft .NET is a company-wide 8 |; m4 x: Q F( m" P7 v initiative. It includes a new way of delivering software and services to bu : G" U! Q4 E; ^1 z* K, l
sinesses and consumers. A part of Microsoft.NET is the .NET Frameworks. The 5 i, n$ t# }. H5 q- s6 |, \frameworks is the first part of the MS.NET initiate to ship and it was given " ?) V& L6 t* q1 L' z4 u- y
out to attendees at the PDC in July. The .NET frameworks consists of two pa 3 j8 ~- s# N5 q) A2 X) v: Prts: the .NET common language runtime and the .NET class library. These two # a& B9 _6 R9 n r" h% Z
components are packaged together into the .NET Frameworks SDK which will be / M* r4 _) S" H/ Q7 m4 G, ]
available for free download from Microsoft's MSDN web site later this month. 9 F6 p& J/ w& F# F! D' ]% H In addition, the SDK also includes command-line compilers for C#, C++, JScr % x+ {* K! `- U! d) h* ]$ q
ipt, and VB. You use these compilers to build applications and components. T * X) r% K, D- R6 B: qhese components require the runtime to execute so this is a development plat 2 n. V. K. _ hform. When Visual Studio.NET ships, it will include the .NET SDK and a GUI e % }& r4 Q) z! l9 |. Jditor, wizards, tools, and a slew of other things. However, Visual Studio.NE ' r6 |% N: [# N% g; y# A$ z+ H8 [9 AT is NOT required to build .NET applications. ( b$ k: Y0 S+ s7 s! L( X- v$ i 8 k: ~1 A* r( s! ]3 W $ K. \! o2 L2 I- U; X1 O4 C+ o
Question #2 How likely it is for C# to become a general-purpose (meaning: 9 `# ?$ o) I8 e. x/ o; n7 a
not MS-specific) language and if so, have any other vendors committed to pro 4 ^, h& D a5 Jviding compilers on any non-Windows platforms? & Q9 E, X4 J) C3 k$ M( i; f
' h. k1 e, `: @6 K* X5 B! ~
Answer It's hard to answer this right now. I have been programming in C# a ' M! q% W3 K' h v& } Rlmost exclusively for about the past year and I love it. It only took me a f * f1 \6 m4 @/ o: M2 Z! C
ew days to learn most of it since it is very similar to C++. It was designed 8 E. U2 o: G) C% w4 [6 E2 N3 ~ to compliment the common language runtime and I think that it's unlikely to $ Q4 P l4 |/ T+ j8 R6 R gain much momentum if decoupled from the runtime. However, you never know. , o" S) `5 A+ W1 W
Microsoft is submitting C# to the ECMA standards body so any company will ea 1 M. p# y2 E) e; a2 isily be able to produce their own C# compiler however, without a runtime, th ; w6 V8 P2 ]4 F& s7 d
e compiler itself is not that useful. I'm not aware of any companies current ( O( j, Y+ S5 O* I" A0 qly working on their own C# compiler. Certainly, porting the runtime to anoth ( u2 R( O" J8 G; X6 Ker OS is no small undertaking. * D4 c* T9 I2 d/ R 9 s+ b7 | [2 ^3 P1 m4 R 5 f' U" L- E4 s. B7 P% F& J h' K0 G Question #3 Can you tell us specific practical problems that C# can fix be ! P/ m* x5 p5 }tter than Java? ! j- x" A# `. `/ Q
& S" P& e9 O! {7 D8 `
Answer I must be honest with you: I have never programmed in Java. I know # M: D6 o; @3 e' A2 L, x7 Uwhat C# offers the C/C++ programmer: simpler syntax, components that seamles - j+ E e" K, k* w& R m
sly fit together, type safety, and so on. Other people should be able to add 6 U+ ]' @: D# J( L/ I/ [3 G8 j
ress the C# <-> Java comparison. - {9 ~2 }* N# o! l; U5 M
7 T% a0 \) y- u$ X& O- K j6 W
8 O' _% l7 x4 J D* i: Q/ @
Question #4 Will ADO+ be the preferred and most efficient method to access ) S) c' X8 D- V* v" u7 W databases from C# or will it have it own (or .NET) class wrappers for the O 9 z* h- S9 E6 o2 o" C9 W3 w
LEDB API? ( P5 d5 a2 m4 o4 N1 k- n: x& _
, {8 s$ R; X0 q' Q# K% A2 n/ }9 h
Answer The .NET class library includes a System.Data namespace with many t * L0 C5 E s; q9 b6 Types for database access. These wrappers will be the best (and most efficien ' }, p% `' g) m
t) way for a C# programmer to access data. A. K) _! M0 i0 I! d0 k/ W 2 d7 n0 U5 o6 d( ]/ B( i& D& m4 A
* `# i" E# z5 z( G7 W; ~ Question #5 Can C# be used to develop Windows applications or is it soley ! u6 B' H" i$ Z6 S4 N/ n
used for developing distributed applications? ( x+ `4 b% u1 _6 D , j' V" M. t" w. w6 m
Answer C# can absolutely be used to develop classic-style Windows applicat * J8 z# l9 _: p: t. f. h- Xions. Actually, this is more a function of the runtime, not the language. So 1 ]/ |0 @$ j5 c# I
, the runtime supports console apps, GUI applications, NT Service applicatio / `5 t- h* [0 X- D" w8 F# Hns, simple components which can be used in applications, web pages and so on ( M" C( U" B# q, y
. You can't write a device driver but that's about all I can think of that t 5 p* O! Q* d( Phe runtime doesn't support. ' k; q6 q8 ], d4 x 4 q5 Q0 g6 F4 E8 q4 P- T! P
7 t# a" W' X1 S8 E, E1 X Question #6 What is the C# relationship to WinForms? 0 |$ w$ ?/ }7 I- |2 S6 H ( A. U" x0 Q. K7 g
Answer Win Forms is a set of classes in the .NET class library that wrap W ! L* m" L; ]% z) l6 F( C
in32 windows, brushes, pens, etc. Any language targeting the runtime (includ 8 t( Y% k& S! [2 T+ U0 P6 B
ing C#) can construct instances of these types and manipulate them. This is ; N' P; {( o: m7 ?# e4 }
how you would create an app like Notepad, Calc, or Wordpad. I know that Win 6 a+ y% g1 i# Q( Z8 k
Forms has similarity to J++'s WFC library but I also know that there have be , \! x7 F2 A/ K/ p- W( `
en some major changes. 9 s. I: {+ Y2 i. H+ y / n) z$ J7 f5 b' Z" D3 t/ x" c. T % n2 y! Y3 {- f6 O Question #7 Rumor has it that the C# language has been submitted to the EC ' {) j! p- @, J5 U& P. x
MA for ratification. Is this true and what impact do you see that having on 3 g/ ^ J$ u% D5 U( S
other companies adopting it as a general language (such as C and C++)? 0 I2 X% f9 [5 o( G! _ & u7 u2 {5 y4 V3 V
Answer Yes, it is true. I pretty much answered this in question 2. , k- b+ c3 S! J7 d
" U9 t6 P( f1 ~/ K, m0 @2 f) f
_: K+ k; {2 _2 x) x2 _! i$ t
Question #8 Which will be the role of ATL and COM in the new .NET technolo & s- m# W& S8 q& h* xgies? 9 I7 b: [9 W# |9 r ' E( k) N' r) B' j% D
Answer The .NET frameworks offers a replacement for many existing librarie 3 j/ _" I2 J0 i Q) {! e3 W Z8 f
s, like ATL, MFC, C runtime library, standard template library and so on. .N $ n) g7 x' p# V3 }: }* g
ET programming is significantly easier than using any of these older technol - v* g( g, H3 @" _' M/ ~ogies. For this reason, I suspect many developers will move away from using : {0 p: ?; L/ R6 h/ z0 D" }
the older technologies. The older technologies can buy you performance howev % D( j8 ~# Q. L. `) qer; so, some people that are very concerned about this will stick with what' . }9 J1 U& [! ps around. As for COM, developing components with .NET is orders of magnitude ! N( l& E% @. S, }& q
easier and the interoperation between components pretty much happens for fr ) j0 ~' t; Q$ zee. Again performance may be an issue for some. And, for the time being COM+ # `% S( J% e* t+ F! @& R7 g
services, like transactions, are not being offered directly to .NET code. Y . l. L/ ~* ]: s+ c
ou can still access these COM+ services but .NET code must incur an interope ( F3 n/ h7 ~. t3 k" K
rability transition, which translates to a performance hit. , s w; A/ A6 s1 p" V& I3 Z
6 ~* b$ v7 @. D$ S5 V; P$ f
8 k5 m) _9 C! k- b Question #9 Why was the templates feature not carried over from C++ to C#? 3 V# U/ C2 G5 X3 l ! M& c) Y8 b; j * C2 h; f3 g( Y" i( ~7 |! f Answer Again, this is more of a runtime issue than a C# issue. First, temp 3 r- _3 b* i7 r! \7 V) V4 k
lates are difficult to implement and Microsoft choose not to do the work for $ Y' o$ C; M% x" X% W5 o
Version 1 of the product. They may do templates or something similar in fut # ~$ T& K# `. m' T
ure versions. Second, since the runtime is a multi-language runtime, introdu # ^2 t/ ^. |; Q. D$ w: Z; F8 b" L
cing templates means that all languages targeting the runtime would be requi 4 [/ J7 a/ ]# Q: D3 L2 B) w
red to support templates in some form. There are a lot of issues here that n ! Z: q1 D4 b3 m+ _0 r+ ~1 ]( |0 Meed to be carefully considered. 0 S N/ K* y W8 u1 g9 W
5 u5 {% z: y% G7 x& W" ~ ! e9 _! V- Z' J3 M, c% B3 p
Question #10 Will C# replace the pseudo keywords that clutter ATL COM code " [, l4 B: T0 g8 C T. }3 s$ k L with real keywords? Examples: OLE_COLOR, BOOL, VARIANT_BOOL, and DISPID_XXX / d4 f9 A% k( g! |
XXX. 1 [6 x! Q/ z O* d2 Q ) p9 @3 p0 u+ _( A
Answer Absolutely, all types have new names as provided by the .NET class 1 b: M6 \: e3 r5 Z1 N1 r l
library. 6 O4 @- B. V# v- t$ U# L 9 T1 l* Z* r! j, t4 S0 C; V7 G6 p: D
$ ?6 U; O/ ]8 m9 r$ C* N! z Question #11 We've seen managed extensions, but aside from that, what futu . \1 ?3 S2 \' S1 N# T
re does C++ have at MS and in .NET? 8 X8 F" D0 ^: D2 G1 c0 r$ v : A+ l. Z5 x8 S3 o& s: L! {0 R
Answer C++ is unique in that it is the only Microsoft language that allows 0 H2 E# B4 I0 |& C6 l# ~
the developer to write managed and unmanaged code. So, I can easily see dev & I+ ?7 ]: {2 Felopers writing in unmanaged C++ for performance-critical algorithms and the ; J1 p- E, X8 @9 o; D" `4 M" l# O6 v% v
n using managed C++ for type-safety and component interoperability. I'm sure ! r8 L+ Z& G4 b% ~$ e2 q& Y* S# p
Microsoft will keep C++ going for years to come: device drivers need it, Wi * C8 ^( r# l; rndows is built with it, SQL Server< Exchange, and other BackOffice products 7 F f+ ^5 A9 Zwill probably use C++ for a long, long time. 6 {) L! V! J& D3 ^
& B, n. ~ y: B
0 }8 l7 U6 S' {2 J Question #12 If .NET supports ActiveX/COM, how will security be assured if 8 a6 X; L1 {" A1 ]/ L- n
a C# application runs from within a browser? % N9 j. z4 ^ Z4 I
" ~- B- X) f/ y Answer The .NET runtime offers code access security, which allows an admin # F1 l x7 b# S
istrator/user to configure security based on code identify. By default, any + k" @. B. f# [1 z" ?9 k# m
code downloaded via the Internet or intranet is untrusted and will not be ab 0 a3 _0 C3 K, n( b
le to access files and other resources. In fact, when I build a console appl 6 t: b$ v9 L. p6 }' n* pication and run it from a network share, I get an exception when it tries to / O j- R! C$ J" W& ^ access certain resources. If I copy the same file to a local disk directory 0 y1 z M$ l" q3 K) s and run it, it runs fine. Code access security is integrated with the runti 1 \1 [6 v7 ?. k' ~me and is too deep a subject to cover here. 6 x9 ^! F. [5 J# e
- M3 W# ~6 }8 y' g/ w+ [9 ` ) |! d6 C }3 M
Question #13 With regards to the .NET runtime, do I need it on the machine + k( e. x# G" J4 r
that I deploy C# apps on? 8 `0 T5 ~# [1 s. L& q2 x6 Y% F8 K ) T' |* o6 X* b Answer Yes. All managed apps need a manager; the runtime is the manager. M + ?/ I) B8 t# k( ^9 _, t' Licrosoft will eventually package the runtime so that it is freely redistribu + \# k6 |( E! P. `# l: ^ted. For now, end-users will have to install the full .NET SDK from MSDN web " j# r5 |: X9 G' I+ }" C9 N site (when available). This is similar to how VB developer must ship the VB 0 H/ D: y/ s: W) t8 n7 g2 o) B
runtime today. 0 T+ T8 |' u6 `; Y% \
& k+ y8 d- @2 X* | 9 S1 m; Y# S- \% Q- ?. v Question #14 There has been mention of being able to derive C# classes fro 2 L$ g; E! p' u
m VB classes. Is this true and where can we see an example of how to do this 6 L0 [5 t& t8 R/ v2 a? " \( O0 O4 L# A+ g+ r . | N- B$ v9 G7 [, U% I) p5 K Answer This is true. In fact, any language that targets the runtime can de 9 R9 V7 D0 e7 \/ v; t! Y$ _, y, W
rive from any type created in another language. Also, the Visual Studio debu * }& h3 P$ N: E( S% h" [
gger fully supports debugging across languages. Each entry in the call stack 8 X7 e8 v6 y9 ~ window shows the function on the stack and the language that the function w 9 {) b- z6 z; q- I4 Ras written in. This is very cool and got a round of spontaneous applause whe * J# m. T* I2 n
n shown at the PDC. There are samples in the .NET SDK that demonstrate how t 5 { x4 l7 Z% [; a+ zo do this. It's really quite simple. Actually it just happens, there is noth b) b; ]! n X# Z; king for you to do. You can also throw exception across language boundaries a * ^1 |) |) p8 m
s well for error handling. & c2 `4 a; c+ }4 q2 S( f 6 n5 o2 _' f: h4 Z$ J6 B( P $ i" Z! p# h' z2 Z% `% d Question #15 Can I derive a C# class from a C++ class? If so, how? 0 p- \: a1 Y( A8 D; J6 W: S
, i1 r' U! D4 M4 B7 G& }2 y
Answer Same as the answer above: Any managed language can inherit from a t ( F) o( L) g7 c
ype in another other managed language. If you use native C++, then you can't % M8 F* P, }! H do this, however. * e T' Z% G$ H3 e X) e6 e6 w
) m: H; ^, ~3 B3 `. l 3 @) `4 y0 k/ a1 i Question #16 Will the new version of MFC have the option of working in a m v+ ~! N# E2 L0 j: W* M3 H& k- z
anaged environment? 1 H* O( M% E3 S) ~' U& p) T+ v6 u
# X3 O9 Z; o" k8 L Answer I haven't been tracking the new version of MFC but I'm pretty sure 6 Z$ C ?/ @& l5 m
the answer is no. MFC is all unmanaged just like it has always been. For man , p2 H7 f0 X+ B% Haged applications, Win Forms is the window manager that people should use. + P, t& b, J3 b1 u# i+ g % T( L( v: y% k8 r0 C
$ m0 M3 G- ^$ X/ q2 J0 S Question #17 If the new version of MFC will operate in a managed environme * _$ c8 Z# Z6 U l [8 ] R1 pnt, will it have the option of building desktop Win32 apps and not needing . ' i; [1 d y- K$ I- S4 M5 o
NET runtime support? " x; t% ?. l! {" Q, I ' B3 H$ w# u5 ] Answer I'm pretty sure MFC is unmanaged and will never require the runtime ) s% e$ X( a4 f) V8 e5 }. . {/ G* |; z4 T" I! g . `- r) ]* v! v9 J4 |% D3 E ; z" ?; j; ~- e& X% x- f
Question #18 Stroustrup has been quoted as saying "I have not expressed a ! {6 i; {. p/ |& z Y9 i+ T0 r: Q
technical opinion on C#, and I don't plan to do so. C# is yet another propri 6 y- C: x( j- k9 X4 t4 n& W' netary language specialized for Microsoft's Windows system." Do you agree or : h$ r) I1 @ n! ndo you think C# is more of a generic language open to other platforms? 9 x7 u2 s$ h# i1 ]& Y/ V% E% A, B; S
% }. w( t5 F1 j' T \" w
Answer C# is a language designed for the common language runtime; not Wind 9 }$ Z: G0 H# g# A1 w! b6 l7 R) Tows. The CLR can be ported to other operating system like Linux and Solaris & U, D8 X) M# P; y8 k* t
and if the CLR is there, then C# will probably be there as well. In the gran 8 H( g( M- W* R5 Q7 H1 }) fd scheme of things, C# is not that important or interesting. It is a syntax 7 \4 s, `8 ] h% Y% n' g, @checker that spits out intermediate language consumable by the runtime. You ( I1 y; {$ g) }+ \4 ]4 gcan love C# or hate C# - your choice. I happen to love it and think is the b " s+ }3 Y; |# M+ i5 P) \) k
est programming language for the types of applications I write. 5 k# x9 \% |" A0 w) e" Q6 N3 s' t# i 0 M/ j9 g: [6 V- e
/ G5 H* Z; b$ @ Question #19 I heard a rumor that VB7 will allow static linking of the run ( \: p+ [3 n$ m/ w# w0 itime, like MFC. Is there any truth in this? If so, will C# also be able to c ) r9 d$ [( G: l9 ^6 b- Areate standalone apps? % B9 Z8 J, D) l * L7 b1 U$ L; V; q8 H2 z Answer This is absolutely not true. No language will able to statically li ^! Q6 U0 \& Q3 B9 V) Bnk to the runtime. 9 f8 w: b/ {# Q) y+ z $ F0 @# U6 b6 l6 O1 o
$ j) i* @4 W% I: v9 _2 X Question #20 Does C# still use resource files? If not, what mechanism is p ; i, o- C) o, r' [8 n& a: _) D; m
rovided to allow for localization? ( S: \( h+ h, W0 o1 H 8 A F& N8 G0 c4 H8 R X' Y0 e Answer The .NET frameworks designers have created a new resource model. Re # d+ {8 @' \' ]sources can be embedded in EXE or DLL files the way Win32 resources are or r $ @( o- q3 u) x
esources files can now be stand-alone files like a single jpg or bmp file. T 6 V4 N, i6 c, q# M* s1 w# [here is also the concept of fall-back cultures. If the Swiss German resource 1 V; n) q7 X* n. G1 T- U can't be found, the runtime looks for the German resource. If the German re 9 ]$ R6 Y" |3 [3 \! A
source can't be fond, it looks for the "default" resource. Each language wil ; }5 T! p* W8 d }; U B
l typically be built and shipped as a separate assembly rather than packagin 1 N" y# L* j$ A1 J3 f' x5 h2 D
g everything up into a single file. Like code access security, a full discus & s+ J2 ^# }; u( Dsion of the new resource model is too much to put here. / u7 ^+ v m4 D2 P* M, Q
$ C& t6 U! @! w" L6 o/ I* v 3 X8 A( ?6 q1 p* B
" V3 G& `* [ t9 }' ^+ Q" K+ a$ r6 c 2 b6 h+ G4 G+ k- V" R wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : ' k* R% L: u4 Z1 w" q & k% I3 A* H; r6 o, [0 \' M; z% X
我想应该这样说,一种新语言的出现会在一定的功能领域上替代其他的开发语言,以 % S! a. i2 D6 [# W
前的开发语言的使用范围会缩小,但不会消失。(就算是出于保护现有资源的目的) % U' V" R8 l6 \6 w
0 i, D) C7 o& m- S1 Z' n, C 但没有一中语言是十全十美的, * h3 B& b7 C0 L, h8 V: c
2 |" h; n* }" {- g+ W JAVA,C#都不是。 + Q2 o' l- i' ] + J, V: Y+ @$ f6 u( k! Y$ @( R( D : o' I: |' x( M0 w [: d
8 H' y. K1 D( A p5 J
wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : ; |$ a4 p' n' \+ ~1 B. u " }3 b* ? u3 C+ I$ o2 [
》》恶魔吹着笛子来 ) g/ r `' \0 e1 _0 A . O# b& ^+ b* T; u7 {1 c# Z2 O 你好, 0 ~' d; Q8 d- H1 _
' V! F$ C5 p5 w 很高兴能够与你进行讨论, 7 f- c2 W# m7 o$ o( E; Y( w
& v+ C# d7 K3 {" U, Q 虽然本站名字叫做vchelp.net + b4 |4 s/ d3 P) u8 o6 w
! W7 H5 n, U. n4 X server用java.oracle用java是实现了ejb的集成把,他的数据库engine是不是java 的 * B( ~3 M; a5 f3 _% Z' F那?请大侠指点。而且当时号称8i不要操作系统,结果市场反应平平,还好 ' ^+ V) t# c# [; y D ' \/ q1 @9 j. P/ D7 z9 E 搭上了e-commerce这班车,:) 7 v$ E7 f+ k5 N5 A, C7 G' p5 k
' _, o' s: ^* W% G9 A. W& Z5 b: I M 在说说我对vc和bcb的看法,这两样我都算粗粗用过,紫云影说得挺好的,比较公正。 # p2 W; Y$ E% x
MFC的确稳定,ATL未免有点复杂,要不WTL就不会出来了。vcl的源码有一部分是pascal 9 G. b4 e: S- A. J: X8 {写的,这点有点差,不过他的扩展性很好,用用就知道了,决不是好多人认为的vb式的 - u& c9 R1 a- I4 U
傻瓜工具。道理很简单,应为他是符合ansi标准的c/c++语言。其实vc是不够ansi的,C # S( X6 ~% `7 E5 m& |$ Q# c3 \String就是不符合的,所以bcb用了 AnsiString.可惜bcb不够稳定。 + f+ {0 V/ _ E& s" S+ W% e& z
4 q# V. B: W$ y* q; V g) d
提示太慢。帮助的问题我是这样看得,msdn不是专门给vc的,他是windows开发的指南 ! w0 F- m- O) V4 T! ^
,用bcb一样也很有用,是个宝贝。 ; O& ]1 i7 x/ X3 |. D W / W# [! H: ~; @% [7 _' c. W
好了,不说了,反正按需所取把。 : j) k. T R- z! E" S e; }; b7 K" ^
/ y- V p6 E. P# c9 v* [* }' @+ v
cuixue 来自 http:// : 2 `* Y0 W+ b3 q 0 c( h$ Y8 v n1 l. f7 O3 ?
xml远程调用无疑是平台无关调用的一大进步,可是这也不能说corba就要消失了, 3 m( x! T5 r6 y1 |7 P* t) O . x) [% \" y! C+ }, ?
xml这种标记语言虽然提供了强大的标志检索的能力,可是它本身的缺点是与以前系统 ; d2 Z4 |- N9 {& N) O. u0 V的兼容性,所以最近推出了xhtml以兼容以前的应用。电子商务的应用有不同的类型, ) U# V5 E' |) k3 a4 j
; U! O: I! P5 E4 d6 E" ~% K% m6 n 对于一般的b2c的应用,sun e1000上跑跑java或许可以,如果是银行的主机,起码 3 |: `' O. Q& F1 p' Z0 y
* M; S9 e& j4 u' g! m8 A 1000笔每秒,java是不是可以 那?硬件的提高不是没有限度的,而且现在数据中心和 3 j( o _' @) D1 t' L0 M4 P4 H4 YOLAP的流行,对实时的要求更高了,实际上对于单位应用硬件资源并没有什么起色。而 % z* R0 z4 M) r且数据发掘的应用要求对原有资源的兼容,对于中间件而言java开发是有优势的,corb ( ? O. W+ U! [6 j& ?, T6 F- x
a提供了对异构网络的良好支持,ejb也在向它靠,毕竟在这个年代,不可能只存在一个 : S' Y/ }( M% G9 S& l4 W0 z
系统,一种语言,对自身的改造和对异构网络的支持以及原有应用的支持是每种语言都 , d8 P7 S- v' }3 E- r; Y6 n) S
要面对的难题。 ) @/ U, K, i- X& j, P
4 L$ m; G& ]7 o5 [6 b2 S! L/ V ; D; F% E5 C$ T, p3 J* i $ p& p* `* X9 ]( s$ A 杨宁 来自 http:// : 0 s Y3 p. b7 ~' l
2 ?3 V/ A- L- [) b3 u6 R' {
世界是多样性的世界。 ! B! F, ]/ J, n ( ]$ o. b6 e9 J; u; }3 f
不面向应用,一切都是废物。 ) n9 P0 z! s9 o9 D4 Y3 Y9 z8 I6 N$ ?
9 w+ ]9 N$ y3 g6 @( s0 l 学好编译原理和操作系统,以不变应万变。 ( q6 F- t8 `* e" t3 I3 u: z
' a4 C0 g0 B$ _! h+ D! W% [7 f
人的精力有限,面面俱到等于面面难到! , M2 g4 m* h( v" j- d9 @5 w8 O- Q% c
" a6 x) p @# ^" ~8 b9 s 妖刀 来自 http:// : + W( l4 l5 \6 z$ {& }3 U " v, B5 F5 m! N: G+ E 我不会编一辈子程序,我需要简单,快速.我只要他好掌握,能实现功能. 0 F! ]& [( z9 e6 R2 Y. R : t# r; k7 X- b5 H1 H% S 至于是专家型的C++还是傻瓜型的VB(Delphi也差不多)我不在乎. 5 w3 G2 S. _. B$ @
9 o/ I: `% I9 }( {7 S9 H3 | 老板也不在乎 5 s7 t* L7 y, A 8 ?% M" Q* ^- {) M9 l8 Z4 e6 ?. R( Y
TOM 来自 http:// : ; l- R/ P- y( C1 | 7 j+ J. ]: N0 r4 x( o 用VC++和Delphi都各有千秋,Delphi写界面方便,大部分是写数据库程序。但写出来 c) @6 v/ F! f* S
的程序太大,如果做一个组件(为HTML写的)还是用VC好,有句话很好,专业的程序员 - G( L# s: ]* o J用VC,聪明的程序员用Delphi, O, n& F* H2 ?! W/ t# f* |0 v/ b8 B / O& V1 {( T; K0 T TOM 来自 http:// : 0 i! d. ~# k6 H4 g 1 V8 n5 X* x7 M% a4 N w" [% B
用VC++和Delphi都各有千秋,Delphi写界面方便,大部分是写数据库程序。但写出来 / g1 y, K! {- M, ^1 z
的程序太大,如果做一个组件(为HTML写的)还是用VC好,有句话很好,专业的程序员 5 x5 `2 y2 t0 T" g5 q$ A1 t+ ^用VC,聪明的程序员用Delphi, ( N9 r( p: w2 ?6 Q1 w
) Y- w/ c7 _5 I4 I H 宇服 来自 http:// : % ~4 k3 _) B0 ]- e + ~% q2 V' w. E: V! O* x4 j4 s 作为一个真正的程序员,不懂c/c++ 只能与非专业人士一样,改改属性来作程序罢了 5 l* B4 z) \- c$ f' H9 W) E' r
。 - J* p7 y/ r. M
1 h4 p Y- y4 W, W
宇服 来自 http:// : , [0 I4 o9 e3 l' S! N ) P% R& a; X2 {/ s* ?& F 恶魔吹着笛子来的话太可怕了,世界可能只有java存在了????? + R _$ a9 U8 C6 i" ^ * E1 K8 Q- g' p5 ^! l! I3 W0 f
+ n1 K/ q( m- g& [7 A