6 A5 r; e' ~& D/ R) D6 r1 l1 a! L 果子 来自 http:// : 1 S9 J; i' v2 ~7 R2 O
; k- o' L3 J( F; m6 K: h( | "恶魔吹着笛子来"是比较“前卫”的一类程序员。我就听业界的人多次说过JAVA也是 2 o7 F- y* n- U2 H5 ?( c, C & z0 V0 x6 n" G
! v b* j; N& h, L* A 个吹得很响的东西,但实际如何,大家都看得见。至于认为C/C++开发工具(VC, 9 m2 b; n# V, t! V/ h4 L 1 k3 d3 R% ?. X/ t7 S" Z BCB等)会在一两年内退出市场,就是无稽之谈了。 % {* ]: U! @1 F
$ c3 X8 k; l8 D- d( ?7 a4 M# x
Wesley 来自 http:// : & E+ Z3 E9 V8 G- @# F
6 ?6 [1 W: \% v( c" w- \- x 恶魔吹着笛子来,你的观点很有启发性。能不能写一篇或推荐一篇剖析、比较Java开 ( E& Z+ Y5 ?6 d A7 T发工具的文章?比如Visual J++, JBuilder,以及Symantec和IBM的对应工具。(可能和 ! {& {, @3 t; w& z
本站的初衷有些不合^o^) ) Z) O+ a7 m! z( y, U $ O; f# a1 F: N Z/ j; p/ _
LeoCN 来自 http:// : 8 J% u' x5 w1 X f1 B4 `8 d% k4 ]" {0 }! \ It's not a time for us to determine which language will more better! ; G( C- _- |( h4 w - w; e: v+ o3 z. \! R! H; D0 M
in factly,In China,too many corporation just writting some codes for " M0 |* Z h$ q* p, r: s+ d L, P' r4 f* U enterprise's MIS,OA,ERP or other application.It do not need so speed K8 ?) G& z3 @ K5 [6 L9 s2 x 6 w) R9 x: {0 m! D, w and do not need so good original code. just want more data,more easy and m - a5 Q0 A5 r( ?" m6 h
ore quickly. ; m' U5 z, `( h8 K z : l: r, f/ u5 G! n/ a
so c++ is not a choice in such enviroment. and u know,many codes we write 3 V8 w! {4 s7 f) b# c' a8 D/ I2 y
today will be useless.and there r so many easy tools such as VB & `" p% k5 m6 |9 { q# ^ R 2 E3 }4 M- I" ]$ {' N5 f4 g& [
for windows designer, Developer/2000 or PB for database,Domino Designer fo 9 r# |; f# E: u* K) m
r OA application,why c++??? ' ]; j- v5 q- H$ P4 }( v
. Z3 V6 _4 |3 C" K4 K
in DOS mode. i like Turbo c2.0, with it and MASM i can do everything. . t0 f. C. i0 C r g6 Z( D1 b( N8 C* Z# K$ q t but now i hate c++, it has waste my time! my corporation do not need 5 g- I7 y8 y* e: o4 p( W
9 t! a6 a3 V: {+ W% x) C; N6 ^0 p c++,just need java,xml,php,pb,vb,delphi,developer/2000,domino designer etc + I' L$ c3 ]: u) B- K
. 4 W2 P& X9 z2 {0 X 5 t# a3 m1 @9 h7 p. l0 ~ so, a tool is just a tool,if the advantages in some aspect of the tool 2 H' u; g- b H- {) y4 I ; G X/ R: U& _2 [; _% c' B u needed. it's will be a good tool for u. others it can bring u unfortunat : H' A3 h( z; z! w6 U' u) g( Wly! 5 e7 c* J! ^# t7 t " l9 u+ _. {2 i/ n0 ?& W! j
恶魔吹着笛子来 来自 : 6 h5 Y* c s) D l1 B$ T5 z0 p ; `9 F( h2 [5 E! w9 U4 h 果子,国内的Java应用不到10%基本上是ms的天下.这些可能是由于中国软件业规模太小 - g! ~8 j3 ?+ p- v# B
的缘故.而在国外40%的商务系统的开发都是Java,c/c++不到10%.譬如BEA公司一个有3个 8 n1 W1 v; \, p( i3 K' u: v
java程序员创立的公司开发了第一个基于J2EE的Application Server---weblogic.BEA公 # [/ X6 |" ~5 s) X/ F% G: \
司依靠weblogic在短短4年里成为世界第四大软件公司仅次于CA公司.可见JAVA的功能是 0 Z+ J. o/ z/ N$ T" v: W3 n! W( P
如何的强大.微软的.NET的负责人说,你们想要知道.NET是什么样子,那就去看看JAVA.JA 1 J0 u8 P! B4 n, D j7 k" a9 ?5 c
VA是什么样子.NET就是什么样子. 7 C% w) j+ d. L4 m
. Y) K% s0 n' Z. Y. L3 N
- {$ N* A. w4 ?$ t5 D% v' n6 p; |, j xcc 来自 http:// : 3 T8 l8 }% J' J5 f % [2 I5 x4 s* T 同意恶魔吹着笛子,你简直是我的偶像,顺便贴一篇关于C#和.NET专访 * X% {) Z& T5 Y7 U; {8 Y
# v4 y: f+ x8 D" ?/ X* |0 y
NET and C# Questions with Jeffrey Richter ; l6 m* U# u2 o/ I6 n% H( H* L! k+ P
7 h; f8 ^, ~4 a5 y. X! M8 u
In the weeks after Microsoft made a huge splash in the development communi 4 D q( z# i$ E) m! I
ty with their .NET and C# announcments at the July 2000 PDC, Jeffrey Richter : f1 a4 ~$ D8 v' x accepted our request to field 20 questions from our readers about these new 2 S+ q( n2 B% K2 G5 _( M. b8 d9 f
technologies. As many of you already know, Jeffrey is a cofounder of Wintel % A$ R9 B& Q7 Y% z- N7 w3 w3 _lect, a company that specializes in Windows & Microsoft.Net training and deb . }0 r) w/ z# ~ugging. Jeff is also a consultant at Microsoft working on the Microsoft.NET , A6 C* g4 W4 e# F/ y: T2 @, kCommon Runtime Language (CLR) team in which C# and Visual Basic 7 applicatio 5 m' S/ B! R) _" G
ns operate. Below are the 20 most popular questions that were sent in and Je . R/ a8 A0 z8 y; Q1 b/ u7 o6 ?" ?% ~8 Fffrey's responses. 3 i; l3 Y4 l) }: S0 J
# B' R5 _: ? d) K0 ~+ u For Visual C++ developers everywhere still trying to get a handle on all t # a* S: @2 ~" `# Dhis: Thanks Jeff!! 6 A( k4 ?, b& L* W 4 \2 {( s8 X! g6 N. k9 u
* g( [* W) I2 o) ~0 W6 f; G Question #1 Is .NET a runtime service or a development platform? * l+ ]4 h5 I! C7 Y8 S! K4 p8 J % s' d/ r8 n/ C
Answer It's both and actually a lot more. Microsoft .NET is a company-wide ( V* ]& W6 M `
initiative. It includes a new way of delivering software and services to bu ( K! Z$ A& K8 ~5 Y' zsinesses and consumers. A part of Microsoft.NET is the .NET Frameworks. The # Z" |: G- [9 ]frameworks is the first part of the MS.NET initiate to ship and it was given . E! _" T6 j* n2 S' O/ K4 f out to attendees at the PDC in July. The .NET frameworks consists of two pa 8 F. h/ F5 D1 { Y" x6 e! O. Trts: the .NET common language runtime and the .NET class library. These two n6 x4 K5 t3 K) q+ R
components are packaged together into the .NET Frameworks SDK which will be ; k4 s+ z8 ?! b3 k( Tavailable for free download from Microsoft's MSDN web site later this month. + B4 Z% {; t6 m
In addition, the SDK also includes command-line compilers for C#, C++, JScr : P3 L; z6 D+ f# Iipt, and VB. You use these compilers to build applications and components. T ) T7 Y! b: [2 X8 l9 J
hese components require the runtime to execute so this is a development plat : M8 L/ U8 R3 M T- t: p! Y1 G. L
form. When Visual Studio.NET ships, it will include the .NET SDK and a GUI e 7 ~0 h# T1 C! V8 |
ditor, wizards, tools, and a slew of other things. However, Visual Studio.NE + `; P2 M* s% r$ ~( {T is NOT required to build .NET applications. # ?* T3 s& P0 J8 e A, \$ L N7 p3 o. N
$ H. Y) X" ~3 s. R
Question #2 How likely it is for C# to become a general-purpose (meaning: * I# J2 }+ E/ P* dnot MS-specific) language and if so, have any other vendors committed to pro , Z4 e( t+ s; n `7 L) \, {7 ]
viding compilers on any non-Windows platforms? * J9 ^" i; T0 u4 L$ |& P9 v, s + x* w4 D' v B( m' M3 V Answer It's hard to answer this right now. I have been programming in C# a - k9 N1 @/ q2 P! K% k
lmost exclusively for about the past year and I love it. It only took me a f ; `0 N0 |% o1 k# o
ew days to learn most of it since it is very similar to C++. It was designed + @1 V, f* N5 O6 H to compliment the common language runtime and I think that it's unlikely to . h m/ L. p+ |' @4 V4 S3 Z0 U
gain much momentum if decoupled from the runtime. However, you never know. / M( B9 j& b8 K, i' g
Microsoft is submitting C# to the ECMA standards body so any company will ea 3 z5 V! F1 R# F( u7 Ksily be able to produce their own C# compiler however, without a runtime, th F1 ~/ U2 E/ F+ x- F% Q( {
e compiler itself is not that useful. I'm not aware of any companies current ) U2 X) c* P" M
ly working on their own C# compiler. Certainly, porting the runtime to anoth 4 N( `: m+ S5 z+ T5 _
er OS is no small undertaking. 8 D: }7 ~* f( X3 @9 A( U6 o
8 d' q( ^. _# t0 W# s4 k 1 h! w; k$ Q% q' E+ m' o( x Question #3 Can you tell us specific practical problems that C# can fix be " o' G, [) t9 L$ k ~tter than Java? / I. w, X9 p0 p& z2 p7 S; i! {
" T C5 a+ a3 x: G8 \ Answer I must be honest with you: I have never programmed in Java. I know . B) i( U$ t$ P+ rwhat C# offers the C/C++ programmer: simpler syntax, components that seamles 0 J6 B$ F1 N( }4 T3 N- ysly fit together, type safety, and so on. Other people should be able to add . x; _( u% g1 S. M% V6 wress the C# <-> Java comparison. . ?8 d7 K4 O$ i0 N7 g# @+ A, z 0 i7 I( c- N5 G Q( K) b$ M1 U: P * l+ i! z/ b, D Question #4 Will ADO+ be the preferred and most efficient method to access 8 p) g5 v( x& I
databases from C# or will it have it own (or .NET) class wrappers for the O 9 y% \; Y2 [, | ^0 A9 M
LEDB API? 2 \6 h. {' g6 O: w, B$ P3 l 8 G5 R4 l% i" i6 ?, ^# F! X! {
Answer The .NET class library includes a System.Data namespace with many t 1 X8 A/ n$ ^. M1 o9 \; }+ e
ypes for database access. These wrappers will be the best (and most efficien ( E4 ]! {1 o4 W1 R _" m. m
t) way for a C# programmer to access data. 8 P8 J8 O& q3 j5 C6 Y
/ S& `' F/ j. E; r, \# m
9 S/ _. ~3 d" u. o$ N Question #5 Can C# be used to develop Windows applications or is it soley % b, u" r1 k9 j) Jused for developing distributed applications? 8 I. H+ n9 \% s/ \2 `; ^# q : y0 i7 u5 Q; x* ]7 T# r
Answer C# can absolutely be used to develop classic-style Windows applicat * [4 d' l/ c, u3 X8 {+ B, _% mions. Actually, this is more a function of the runtime, not the language. So 1 v! i* G/ P' Y, the runtime supports console apps, GUI applications, NT Service applicatio R& L4 q8 r" M( L: @; \9 m
ns, simple components which can be used in applications, web pages and so on ( p8 A. E6 Q7 _3 x# N0 ^( J. You can't write a device driver but that's about all I can think of that t $ l Y) `* `9 d
he runtime doesn't support. % \5 @' \- U- s! K0 C
* b7 H& i- i1 J; L9 d( Y
* U7 M0 f6 b2 c% @* S5 o, C
Question #6 What is the C# relationship to WinForms? ; U2 @: i: g# s% H ( p/ f8 ~6 x5 w' x4 T( [" K Answer Win Forms is a set of classes in the .NET class library that wrap W : U2 u" n4 }4 c' z% |
in32 windows, brushes, pens, etc. Any language targeting the runtime (includ + I! F/ ?: v J# B
ing C#) can construct instances of these types and manipulate them. This is 6 k- G& [/ g$ O( x: c
how you would create an app like Notepad, Calc, or Wordpad. I know that Win ; R; ?( Y1 Q8 T& lForms has similarity to J++'s WFC library but I also know that there have be 1 ]3 N3 g$ ]1 C; D7 g0 E* A0 ]! [
en some major changes. ( G+ T* }1 x C7 R4 K! P: v" D: \
' A8 [+ {0 e0 O1 j6 ~ F, c6 | / F8 {# d. Q* k7 k6 S Question #7 Rumor has it that the C# language has been submitted to the EC $ A5 j5 ?! d: N0 V. \! N9 }MA for ratification. Is this true and what impact do you see that having on : D; X* n5 A7 N9 kother companies adopting it as a general language (such as C and C++)? ! K9 V" L& u) O* Z; v6 d
, B- Q, X* c$ i
Answer Yes, it is true. I pretty much answered this in question 2. ' Q3 ?1 S" R/ U0 M4 Q6 P4 o
+ K/ u" L5 J$ K! u
3 D3 l, x$ ^$ P# h0 i
Question #8 Which will be the role of ATL and COM in the new .NET technolo & {- ~2 f7 Y* i- p% Q2 o( jgies? / H! y. u& f$ I2 O6 Q
* z; t% K# v. S& M: O. s Answer The .NET frameworks offers a replacement for many existing librarie 5 {5 l; \! W8 y/ C4 ?6 \2 H: G$ Js, like ATL, MFC, C runtime library, standard template library and so on. .N ( V3 u1 G3 e6 e0 _4 e
ET programming is significantly easier than using any of these older technol , p: D! \7 ~& U' Y$ T5 x* W
ogies. For this reason, I suspect many developers will move away from using 0 b& k0 F0 H5 \& k1 r7 U8 p8 r. E
the older technologies. The older technologies can buy you performance howev , P' B2 ?6 ^4 [$ Q% ]. k) ser; so, some people that are very concerned about this will stick with what' # }+ ?9 N+ F( t5 Z, }# r4 }
s around. As for COM, developing components with .NET is orders of magnitude 3 S7 Q2 H0 |/ d) m8 K+ l
easier and the interoperation between components pretty much happens for fr 5 q+ N+ A6 g' s6 d! i- ^' |
ee. Again performance may be an issue for some. And, for the time being COM+ 7 s% i' }: X- s$ H1 \, Y' r
services, like transactions, are not being offered directly to .NET code. Y : X9 s) v/ N' `# r8 V" |; C
ou can still access these COM+ services but .NET code must incur an interope ) l4 J. K# `0 r
rability transition, which translates to a performance hit. / J( T* {. E+ D" `9 m' Y. _7 v
5 F$ W* }! x3 y# O' v z# B8 L 0 _( w# F8 Y) p$ A$ M4 y/ I1 F6 b Question #9 Why was the templates feature not carried over from C++ to C#? ( j6 ]- Z1 B9 O2 B& Z, U9 P6 G
" {/ b& }- M( n. L2 Z& x! O
5 ?" o8 }( t+ @0 m; e- b4 X) b Answer Again, this is more of a runtime issue than a C# issue. First, temp + A! c7 R+ H, v7 Q2 X! V+ n3 xlates are difficult to implement and Microsoft choose not to do the work for & J; C8 l# T! R* Q Version 1 of the product. They may do templates or something similar in fut ' k3 |( i. j' _( y5 b% d9 g+ k
ure versions. Second, since the runtime is a multi-language runtime, introdu ! l$ ^7 C& r% L7 i) v1 O
cing templates means that all languages targeting the runtime would be requi ; B% ]8 F/ e+ w, P" Fred to support templates in some form. There are a lot of issues here that n . G7 J `1 Y1 s4 } M% @
eed to be carefully considered. : k$ F7 B- D& ]' I* \8 H+ } ' ]1 `: x. d% n# N8 ]
9 ^ Y0 o% t' F) T0 h/ ? Question #10 Will C# replace the pseudo keywords that clutter ATL COM code : M6 F3 N* Z, u1 F, u# Y with real keywords? Examples: OLE_COLOR, BOOL, VARIANT_BOOL, and DISPID_XXX 7 a3 E) r) ?. |# d
XXX. 6 Q( F: D# `' J
+ f) K: O7 Q' [( k2 F7 p6 @ Answer Absolutely, all types have new names as provided by the .NET class & x: d7 ^, k! O9 Z. g0 K8 _4 U; ?library. / A+ B: T, P4 j8 K# P0 @8 E
! m7 P2 N- K# i- G+ p ~ . u# s8 ~4 c) K( ^! g! r5 o! h Question #11 We've seen managed extensions, but aside from that, what futu / ~* c2 B+ f2 e0 L3 \3 B
re does C++ have at MS and in .NET? Y6 u7 F2 V! Y' u: z5 F ! M& P/ s; W' [6 f
Answer C++ is unique in that it is the only Microsoft language that allows ) u) u& A, c* y; s
the developer to write managed and unmanaged code. So, I can easily see dev 6 ?) u7 v: j& nelopers writing in unmanaged C++ for performance-critical algorithms and the 8 h# Y, \1 S: \/ J. b. g: G' A8 C& ?1 cn using managed C++ for type-safety and component interoperability. I'm sure : H( I% H: `3 I6 Q2 Q0 g/ X* k# |6 |
Microsoft will keep C++ going for years to come: device drivers need it, Wi 7 U& W: u, n$ A+ H5 [! v3 }: Mndows is built with it, SQL Server< Exchange, and other BackOffice products 4 k% P2 o& e2 f% t% K3 {' {- uwill probably use C++ for a long, long time. Q4 j3 b" t( \2 ?& _5 {
* J# ]) k' W# j' g! y0 Z0 J+ [ - _2 g% \ L8 s& |0 _# V Question #12 If .NET supports ActiveX/COM, how will security be assured if " o; {* R3 r2 n* J( Q
a C# application runs from within a browser? S i! T5 ^& n' f- N: f
- n9 R8 U3 D7 x; d; B
Answer The .NET runtime offers code access security, which allows an admin $ V/ p8 ^1 t% o! ~: {1 \) K. w( [. Y- i& uistrator/user to configure security based on code identify. By default, any 0 E- r2 i4 V5 b- ?
code downloaded via the Internet or intranet is untrusted and will not be ab * F ]& ~% _' e; _; x' u/ Mle to access files and other resources. In fact, when I build a console appl & C$ O, f9 s9 G d( P5 p$ }
ication and run it from a network share, I get an exception when it tries to 3 K$ S$ E) C2 k2 V. C2 { access certain resources. If I copy the same file to a local disk directory 5 f' c" f$ O" R3 F! b4 l+ | and run it, it runs fine. Code access security is integrated with the runti ! g7 h2 s) v( j/ i# U4 f% O
me and is too deep a subject to cover here. 5 `& ~. C w. u
2 M3 n* `: c7 i( x, ` 3 b* {; Y @9 ? } L8 q7 P
Question #13 With regards to the .NET runtime, do I need it on the machine + V, f# B* Z* w6 d/ ?/ ` that I deploy C# apps on? ' t, T y( l# d* A
5 r# \; r: c& R6 ]7 x& f2 K! U6 I Answer Yes. All managed apps need a manager; the runtime is the manager. M ], m3 T! F+ W1 p
icrosoft will eventually package the runtime so that it is freely redistribu 1 v% ^2 z% v f8 L/ x& w
ted. For now, end-users will have to install the full .NET SDK from MSDN web 9 q& K& N' |8 A8 t1 O% I) ? site (when available). This is similar to how VB developer must ship the VB J- }8 u& M3 s
runtime today. * D+ f" W9 B6 @8 Q/ S ! l! {& Z. w0 ?; @. R' S : w) C* A& H w( N Question #14 There has been mention of being able to derive C# classes fro : h/ W9 |' O W( c
m VB classes. Is this true and where can we see an example of how to do this ' `; U! l2 a) k2 d4 f: K2 ~? 2 t0 n! E8 e% x4 y/ O6 N# p4 V 7 ]& T, L# q- D/ ]7 ]" f
Answer This is true. In fact, any language that targets the runtime can de ' P: R/ X6 Q: ^) V1 e. [5 }9 N9 M
rive from any type created in another language. Also, the Visual Studio debu 4 d+ V8 C2 } U6 C6 e9 j$ @gger fully supports debugging across languages. Each entry in the call stack " N& K% Y: y( A5 [5 J! z8 j window shows the function on the stack and the language that the function w 4 M" V1 _$ S. [4 j
as written in. This is very cool and got a round of spontaneous applause whe 1 {: s, ^. |) H, E$ vn shown at the PDC. There are samples in the .NET SDK that demonstrate how t + \, T3 H s* _$ v# Eo do this. It's really quite simple. Actually it just happens, there is noth / `. o5 N, B1 T. }% Jing for you to do. You can also throw exception across language boundaries a ; s) f* ^ c. [4 X& [7 Y8 _& |s well for error handling. J" e- Q/ b5 ?0 i" @6 }6 d/ x
* u/ a' \5 g4 H & ?8 ^! g% e m, N! M
Question #15 Can I derive a C# class from a C++ class? If so, how? 8 y5 [5 @8 |3 g0 T
% v& }1 d% p! F) k Answer Same as the answer above: Any managed language can inherit from a t 5 E- T/ _, E; f; k: q& a' E" x% d
ype in another other managed language. If you use native C++, then you can't & [# D: n/ a2 O do this, however. 6 F3 w3 p) ^8 Q' i I. O$ n- c 2 r- n3 C, W1 b7 P1 k } % c! L# W- ~# F6 f Question #16 Will the new version of MFC have the option of working in a m 0 t0 H1 c6 W9 u) l9 ~, ~: G' ranaged environment? & A2 z( B5 M2 H' N3 l5 n
: w4 g1 W4 I( T Answer I haven't been tracking the new version of MFC but I'm pretty sure ! j# k( l; a9 r5 {3 l2 jthe answer is no. MFC is all unmanaged just like it has always been. For man f0 ], Y+ c Z# W
aged applications, Win Forms is the window manager that people should use. : e+ J5 I' g: d9 h
W6 I: D, Q% g# g* ?9 t
) n* g/ v. I1 h; m
Question #17 If the new version of MFC will operate in a managed environme 9 w$ R2 ?$ y8 D2 S' W: ?% bnt, will it have the option of building desktop Win32 apps and not needing . 0 a) U2 D! A, ]5 A! k6 B: O9 ~, vNET runtime support? . Q* d4 ~" U( d- W5 K; n0 M 1 F3 C! V' H0 a
Answer I'm pretty sure MFC is unmanaged and will never require the runtime + V# q1 L$ c) h
. / M9 R) d/ n9 _! j% c4 r/ ~
+ E( P8 o8 [( K$ @ $ D! j0 H( x8 J" f: T1 U
Question #18 Stroustrup has been quoted as saying "I have not expressed a 7 K. W) x2 J4 K* etechnical opinion on C#, and I don't plan to do so. C# is yet another propri - S! k: }0 R; m) [, F) Setary language specialized for Microsoft's Windows system." Do you agree or & U! V' J/ Z% {% X$ Y) ?$ l
do you think C# is more of a generic language open to other platforms? : j; Z3 R; K" t& _4 p3 L 1 O% y1 K7 A8 m3 G, U2 a4 T Answer C# is a language designed for the common language runtime; not Wind + b* N, ?* G' s
ows. The CLR can be ported to other operating system like Linux and Solaris 6 `8 `- j; Q7 H. p* jand if the CLR is there, then C# will probably be there as well. In the gran % k8 G) {3 ]7 c1 n7 ?4 P
d scheme of things, C# is not that important or interesting. It is a syntax ; f2 ?# V* v2 ~9 w8 Cchecker that spits out intermediate language consumable by the runtime. You ! A# j4 K, N6 n8 X8 T% M- I2 i
can love C# or hate C# - your choice. I happen to love it and think is the b ' Z% r6 `! L& A; v, ^7 \
est programming language for the types of applications I write. & I9 h8 [4 a" X( ^( ^
l9 d: \0 Z; p1 [0 v( m9 ]- n % k6 b+ W: K( {. ^! H0 [" {/ X
Question #19 I heard a rumor that VB7 will allow static linking of the run 8 P1 g1 c$ Q3 }7 b
time, like MFC. Is there any truth in this? If so, will C# also be able to c , i0 |# f" c" ^reate standalone apps? ' B) j# d+ p5 ^* G/ N5 p - c4 O- j" T6 ?3 v
Answer This is absolutely not true. No language will able to statically li 0 `9 ~! n8 L: H6 \1 b4 e5 Qnk to the runtime. 8 @6 R# f0 m! ]+ l 9 k7 h; f! r3 h. X; b
; w2 b O$ H! r0 N
Question #20 Does C# still use resource files? If not, what mechanism is p 2 v# R @* _" x( H0 d2 K( frovided to allow for localization? ( [7 P' u0 e: A$ D! R5 ~7 _# \ 7 x9 W1 f* ]8 r( A5 X- r1 X Answer The .NET frameworks designers have created a new resource model. Re ) B" \7 ^5 r s1 e9 }
sources can be embedded in EXE or DLL files the way Win32 resources are or r 3 v2 A' q9 q; z- h, @
esources files can now be stand-alone files like a single jpg or bmp file. T ( s; C; U1 u% v. i# A# m
here is also the concept of fall-back cultures. If the Swiss German resource 3 Q7 G1 O+ T. \+ a# B, X& L! p can't be found, the runtime looks for the German resource. If the German re E) E0 ?4 ]9 zsource can't be fond, it looks for the "default" resource. Each language wil 8 H. y; V" Z4 j7 l5 M* F; w& r
l typically be built and shipped as a separate assembly rather than packagin 4 P: r, C) U1 y; ]2 ?g everything up into a single file. Like code access security, a full discus : s) N: X2 t# ~5 p1 F* w4 f
sion of the new resource model is too much to put here. . V& w8 C" {, J! f# g
% f* N0 g& L4 P4 x% K& d* s
9 z F. C1 x8 I/ I
% D' V1 H2 g4 b& {) j( L, D! O
- n! e% \7 O: T- T- m, P$ {2 K5 [" S
wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : # P. a k5 D8 m1 E: ?) h ) f1 l. B8 b0 v
我想应该这样说,一种新语言的出现会在一定的功能领域上替代其他的开发语言,以 " V5 b2 j: [: q
前的开发语言的使用范围会缩小,但不会消失。(就算是出于保护现有资源的目的) ' W4 `, ^& x0 Y) {4 c
; x/ a6 D0 F& b! S: S 但没有一中语言是十全十美的, 7 t1 Z. t" d& i. f+ n5 O% F, Y' k# C
' j8 j% Q( ]: D: [5 s JAVA,C#都不是。 6 e. \' t8 C' e+ C' d; ~. ^
1 }/ Z6 l, A' j" q