& V" v+ s. d6 ] 我一定程度上同意 恶魔吹着笛子来 的说法, p. V9 a$ I0 I+ L% g - z0 ~) U1 Q3 q0 \6 ~# o 毕竟VC开发速度是比较慢的, : M# e- i3 {7 J3 r7 X" y
7 H4 M2 T5 u0 ~9 Z& h& z
而且硬件速度的大规模提升也为使用JAVA开辟了道路, 2 _6 `! L( j K* B6 ^0 I/ z- \ 4 k5 v9 S8 @, _0 W
不过microsoft.net的目的是一定程度上改变MS的经营性质,和开发关系不是很大,但 6 A! s+ w! ^" K3 @ y) D$ K是MS的一贯方针都是在平台上为开发人员提供方便, . H4 }2 f0 A6 K' E% R8 V2 N* H8 E
r: T9 h1 I+ |2 s 所以C#是为了.net服务的。 9 u4 J8 Z3 S( @
' ?$ C0 `9 x9 y" H! I 3 {* ? v$ ~$ c- D. z+ C1 {
此外我想我没有精力再搞个c#help.net了。:-P . j! ^- Y& j5 d; y
) j0 w$ ^) K# N 果子 来自 http:// : + i+ o3 Q! H) F& u- ^9 h' g! O
2 H+ G& m: P" E& b5 ]
"恶魔吹着笛子来"是比较“前卫”的一类程序员。我就听业界的人多次说过JAVA也是 8 n! `' \" `+ F C; ^" @4 T ?6 `" s s8 D# J8 \ 6 q. i# i; T5 I- U3 Y
个吹得很响的东西,但实际如何,大家都看得见。至于认为C/C++开发工具(VC, ( W( H. N" l/ D* M8 P
( q/ q5 s( {* g8 u% F
BCB等)会在一两年内退出市场,就是无稽之谈了。 / ~- R" t0 g# }0 c6 U
) P$ n: K/ W5 X4 W& j2 t Wesley 来自 http:// : 9 D$ D _3 P, ~ z9 x9 L$ A+ K; I 6 d a& K! V N' U p& ^5 F- W
恶魔吹着笛子来,你的观点很有启发性。能不能写一篇或推荐一篇剖析、比较Java开 3 u9 J! k% s- _: I2 X发工具的文章?比如Visual J++, JBuilder,以及Symantec和IBM的对应工具。(可能和 7 {, Q3 N* d/ ]2 x' l
本站的初衷有些不合^o^) ' s4 E+ A0 @" {) V2 k
; p3 q L$ ?; u S# X& h; I
LeoCN 来自 http:// : " o+ W2 A; Q$ a9 g& @; N/ C
: M& T& z! C; X! l; P/ R( u
It's not a time for us to determine which language will more better! 2 W6 ]+ j j% ]& J5 G# k; S4 ^ , V+ N/ c& E0 Z9 Z7 w- L! n in factly,In China,too many corporation just writting some codes for 6 R+ L8 j, q5 ~/ q3 k# s
2 i; P! Q; X+ b, G5 T enterprise's MIS,OA,ERP or other application.It do not need so speed 6 O# u9 @- a# R* F* \ 9 C+ l3 q& t) G" o& o
and do not need so good original code. just want more data,more easy and m ' i2 \: [( ?/ U8 k: F& D
ore quickly. . R) Q1 g/ a- r% v
9 Z# k0 [- R. L, h so c++ is not a choice in such enviroment. and u know,many codes we write . w% C5 P* D% Y0 z( Y4 u {: htoday will be useless.and there r so many easy tools such as VB + E s: v! | n* ^7 k A; V: { ) d2 k o; r" L: O, L& i# @ for windows designer, Developer/2000 or PB for database,Domino Designer fo & T& q( W! p% b" e
r OA application,why c++??? . b4 A5 u3 \8 t1 M4 |( [$ ?+ A , c" J8 \$ M7 |4 y6 I1 Y in DOS mode. i like Turbo c2.0, with it and MASM i can do everything. $ q3 |2 s* r+ @ `, j* T& M
8 Q/ R! N2 W) \! C& U
but now i hate c++, it has waste my time! my corporation do not need 3 l' m8 K( O' T; P* _
: K/ ]# D+ V3 ]0 A. d c++,just need java,xml,php,pb,vb,delphi,developer/2000,domino designer etc 4 b- h3 N- N" C2 D: t. , E, E3 R- F7 j, N6 U" o M1 }3 }% J7 w# ?) T2 a+ I* C
so, a tool is just a tool,if the advantages in some aspect of the tool % L" b/ r* x; F
5 c8 ]2 k: s2 Y6 O u needed. it's will be a good tool for u. others it can bring u unfortunat * L( B! H- H0 k( f5 ^ly! & d/ A4 X1 r: O: F0 Q( r 7 s# x$ ]' W0 z: c 恶魔吹着笛子来 来自 : " }1 p/ N. w0 |* ^4 H: I+ t + E, @. R L: u n
果子,国内的Java应用不到10%基本上是ms的天下.这些可能是由于中国软件业规模太小 8 ~ l6 C0 R# ?4 r的缘故.而在国外40%的商务系统的开发都是Java,c/c++不到10%.譬如BEA公司一个有3个 * S! A0 i9 v& t- A; I& xjava程序员创立的公司开发了第一个基于J2EE的Application Server---weblogic.BEA公 0 t9 `8 F. f; u, H司依靠weblogic在短短4年里成为世界第四大软件公司仅次于CA公司.可见JAVA的功能是 - V7 D/ f/ Z5 |5 P8 r
如何的强大.微软的.NET的负责人说,你们想要知道.NET是什么样子,那就去看看JAVA.JA : g3 B4 K2 r; {6 I& F" q
VA是什么样子.NET就是什么样子. / w+ }* T2 @! o0 W8 I 2 P; b- X3 Y% l7 q
7 v1 {/ p& e+ j, E( c 同意恶魔吹着笛子,你简直是我的偶像,顺便贴一篇关于C#和.NET专访 8 w4 |# g+ \: l* a( Y- a
7 d+ ^7 N/ o+ F
NET and C# Questions with Jeffrey Richter $ }/ }6 Q( i$ L9 e( k4 h' ^. P
5 N5 c) p4 }: j. L) E2 Y& u$ j: Q In the weeks after Microsoft made a huge splash in the development communi - b ]( ^( I/ |
ty with their .NET and C# announcments at the July 2000 PDC, Jeffrey Richter 8 S' t& Q9 q/ |: d( Y6 i& s1 l
accepted our request to field 20 questions from our readers about these new ! f' G' y- ?) {* A, d technologies. As many of you already know, Jeffrey is a cofounder of Wintel # U8 i, ^) _' u
lect, a company that specializes in Windows & Microsoft.Net training and deb + U- {5 ?( ?2 v* T* W) Wugging. Jeff is also a consultant at Microsoft working on the Microsoft.NET 8 `! y' i) L$ QCommon Runtime Language (CLR) team in which C# and Visual Basic 7 applicatio # n/ X" V0 I1 q5 |$ q! ?
ns operate. Below are the 20 most popular questions that were sent in and Je % L; R- D; n5 S' x5 rffrey's responses. ( G& L- d; f( q0 g8 f8 {0 ] 0 H; R; O) R" G9 i d For Visual C++ developers everywhere still trying to get a handle on all t - a2 O. Z, W: u" [, p
his: Thanks Jeff!! . ?6 G( f( K# D2 n
. K( J( H! X5 G, c" D- Z) b; V5 Y , k$ N. R' }$ n7 U2 e1 C
Question #1 Is .NET a runtime service or a development platform? ( n3 D+ T4 g$ O8 v; h0 o
. C' D* K9 S. v8 ?: _/ y
Answer It's both and actually a lot more. Microsoft .NET is a company-wide 8 M6 D5 P9 z/ ~( R
initiative. It includes a new way of delivering software and services to bu 2 z* ]$ p, f. hsinesses and consumers. A part of Microsoft.NET is the .NET Frameworks. The % }! S: {' p. `" f2 \2 @
frameworks is the first part of the MS.NET initiate to ship and it was given ; F* w5 V8 E8 J* Z: Y# B1 Y1 b6 K out to attendees at the PDC in July. The .NET frameworks consists of two pa / X( ^7 h* u& hrts: the .NET common language runtime and the .NET class library. These two ; b2 g' \# r1 r" M" u# `components are packaged together into the .NET Frameworks SDK which will be / Z1 {; ?3 I$ }0 ~; _# P% Oavailable for free download from Microsoft's MSDN web site later this month. * _) ]! l0 N0 u In addition, the SDK also includes command-line compilers for C#, C++, JScr 3 a: D& Q' F- h1 z w/ s
ipt, and VB. You use these compilers to build applications and components. T , X' h7 H" @+ p5 J9 v1 k) J, H
hese components require the runtime to execute so this is a development plat 1 ?6 \! O& N" nform. When Visual Studio.NET ships, it will include the .NET SDK and a GUI e * U5 M! E" q3 C) i' p
ditor, wizards, tools, and a slew of other things. However, Visual Studio.NE # Q4 P2 Q5 I4 M: k" b% Y1 uT is NOT required to build .NET applications. ' F2 ~! T- J0 ?) Y7 t$ _
. K2 I; l7 e, ]+ G2 `# \$ o, s # V2 @! R9 T8 _) c" @" D6 P Question #2 How likely it is for C# to become a general-purpose (meaning: 7 _& M* g. [! C6 C( o
not MS-specific) language and if so, have any other vendors committed to pro - J4 M# z; m3 q J& o2 Lviding compilers on any non-Windows platforms? 0 _ K4 E: `, _ ^: J: H * u$ |$ ]7 m4 U8 } Answer It's hard to answer this right now. I have been programming in C# a + F& c4 ?+ a1 n1 O# a/ dlmost exclusively for about the past year and I love it. It only took me a f [3 }: k. I$ Q$ {( O
ew days to learn most of it since it is very similar to C++. It was designed ; k7 O9 e5 _. q9 q
to compliment the common language runtime and I think that it's unlikely to K# L1 `8 x$ `7 P
gain much momentum if decoupled from the runtime. However, you never know. ) P; C* C& e, o3 x, z7 v: _
Microsoft is submitting C# to the ECMA standards body so any company will ea ) P% A) d1 ]* a4 P, X% Msily be able to produce their own C# compiler however, without a runtime, th 3 F _: S4 ^9 w' `# x, W7 m
e compiler itself is not that useful. I'm not aware of any companies current 1 u% a$ ?! @, m
ly working on their own C# compiler. Certainly, porting the runtime to anoth w9 v" A; q5 Y: b; J
er OS is no small undertaking. 9 Y; ~( M! O$ v" q2 ? : b [) b2 a: `6 n7 E& J" J$ Z- L
' }& \4 M7 k, j! b$ t6 S; T
Question #3 Can you tell us specific practical problems that C# can fix be , W+ w2 o, E4 ?0 l" R# Btter than Java? , h* a* k, E/ j2 T. e- X7 D* E1 J 9 ^- p; I- ^9 ~ Answer I must be honest with you: I have never programmed in Java. I know ' W1 D, q% Q! h8 }) Iwhat C# offers the C/C++ programmer: simpler syntax, components that seamles / x8 ~* Y0 n, L E7 \+ A3 C1 esly fit together, type safety, and so on. Other people should be able to add 4 K2 v: u; s2 cress the C# <-> Java comparison. ) n# D& d0 G) U# ]) `% ^; B 5 c: M6 z5 l/ K& V
, N# W3 ~, `5 d Question #4 Will ADO+ be the preferred and most efficient method to access 1 D9 k. x* E) e6 z) q9 k+ o databases from C# or will it have it own (or .NET) class wrappers for the O 1 u/ e" @, v: T2 s9 e+ s l. R
LEDB API? % H* B" @7 y- A; S8 {) @- |: T ! |3 e% R- a2 f! J8 _/ C0 h9 Z
Answer The .NET class library includes a System.Data namespace with many t 1 |; x1 }4 l) l3 A8 h
ypes for database access. These wrappers will be the best (and most efficien , N3 g, q1 ]9 I9 J' c! Mt) way for a C# programmer to access data. 7 p1 y$ Q" V! t4 ]! ^2 t 7 x+ i8 B" s0 C5 O. P0 _
S+ c" g: u: m1 i0 a' i2 P$ v Question #5 Can C# be used to develop Windows applications or is it soley # _% l, p/ ? s. ~
used for developing distributed applications? 3 F( H/ ?# `$ N5 t
/ b( m% W& g* i; Q. U" b( z2 Q. e- V
Answer C# can absolutely be used to develop classic-style Windows applicat K) g" B* D# j* [. Oions. Actually, this is more a function of the runtime, not the language. So 0 l/ a1 v7 I9 T ]# m9 [, the runtime supports console apps, GUI applications, NT Service applicatio 1 T. t$ ~& u2 n& C y! W; lns, simple components which can be used in applications, web pages and so on 7 U5 S2 r- e/ T4 g' X
. You can't write a device driver but that's about all I can think of that t 5 e8 p; W I7 S% [he runtime doesn't support. ' d8 s3 Z8 w% ?& N) l; H) J
4 Q% b0 \4 X& U) H * z1 I! t |4 S* q* j Question #6 What is the C# relationship to WinForms? : f, Y8 B* v- X7 X9 D
: I4 q& ^. z" f& f' ` Answer Win Forms is a set of classes in the .NET class library that wrap W 3 j+ T3 p5 \0 Q3 D- d6 K" M6 D, g
in32 windows, brushes, pens, etc. Any language targeting the runtime (includ * w; n7 h3 v) i' j# H% t, oing C#) can construct instances of these types and manipulate them. This is " S# C. f% ^; M) L+ l* L
how you would create an app like Notepad, Calc, or Wordpad. I know that Win 8 N) S" Q& t) U5 l# t& [Forms has similarity to J++'s WFC library but I also know that there have be 7 ~1 P' o; X) H1 P3 fen some major changes. ' ]# X2 ~2 Z1 j2 M1 D; M0 A1 s$ X m! \# f! B: b$ p7 { ' B- A9 Q- @, x; S2 v Question #7 Rumor has it that the C# language has been submitted to the EC % ]5 a8 u r& \MA for ratification. Is this true and what impact do you see that having on `9 O4 E- l: ]) Qother companies adopting it as a general language (such as C and C++)? , T2 F! Y3 B. n% h" T7 d
5 d1 `6 \% [2 U9 d# f
Answer Yes, it is true. I pretty much answered this in question 2. & k4 T0 n u: _ 5 [/ A8 h @( O' \2 G: I
- I1 ?; v' N# T- z; f! q Question #8 Which will be the role of ATL and COM in the new .NET technolo % c, ?* }' Q% s/ i8 ]3 @
gies? 6 `1 a+ d0 I. {- ~0 Y 3 p, r. ^$ I; Y3 s1 _0 e
Answer The .NET frameworks offers a replacement for many existing librarie . A. v# n* h2 L6 \5 E: os, like ATL, MFC, C runtime library, standard template library and so on. .N 7 H4 T0 |& V9 l6 l3 D/ k
ET programming is significantly easier than using any of these older technol $ G3 J( k: a9 }/ zogies. For this reason, I suspect many developers will move away from using 9 B( N( J: G" \the older technologies. The older technologies can buy you performance howev U0 `9 m- w7 A0 F
er; so, some people that are very concerned about this will stick with what' 3 P; p8 S5 L# R+ C: S
s around. As for COM, developing components with .NET is orders of magnitude 0 Z& B5 t* ~+ l, C* ?1 H9 T
easier and the interoperation between components pretty much happens for fr & s, Y+ n; r& J9 n6 a
ee. Again performance may be an issue for some. And, for the time being COM+ ; p) B5 @, p. ]" J( }- x services, like transactions, are not being offered directly to .NET code. Y & P- S6 I/ h- f! G0 w" o! [ou can still access these COM+ services but .NET code must incur an interope : b6 t$ K# L0 M7 f" p( M
rability transition, which translates to a performance hit. 4 D+ C2 }& P' K1 H" O9 } + S. R6 I- {# `) R, R 2 v" `: J: D: E/ ?2 V Question #9 Why was the templates feature not carried over from C++ to C#? 4 t) C# @1 [9 n0 l) K. ^3 z
. f1 E& o; R1 \& f2 \% h3 a
' P6 l. g# h! z& |: X- y M
Answer Again, this is more of a runtime issue than a C# issue. First, temp % j* @" ^; V8 e2 V: Elates are difficult to implement and Microsoft choose not to do the work for # H# f! V+ P S1 u4 S
Version 1 of the product. They may do templates or something similar in fut ( h9 _9 Q7 v" Z8 d3 Rure versions. Second, since the runtime is a multi-language runtime, introdu $ V4 P% q4 K, O- o) P+ {+ lcing templates means that all languages targeting the runtime would be requi 2 p7 K1 J; A& l( f& q1 [! y- Kred to support templates in some form. There are a lot of issues here that n 2 Z; z: w! {$ v7 D
eed to be carefully considered. 4 l0 G+ E: e' [7 I 8 ?7 F d! J) J7 U7 o
+ Y; a" w ^; v7 M# C) v0 a0 _
Question #10 Will C# replace the pseudo keywords that clutter ATL COM code ) E* L9 W& f+ g3 X U with real keywords? Examples: OLE_COLOR, BOOL, VARIANT_BOOL, and DISPID_XXX % J* l! v- u3 s" R3 O% ?" PXXX. 2 X- e5 M8 G6 Z: T+ X
6 z. p. c+ E& _5 G) ~8 B Answer Absolutely, all types have new names as provided by the .NET class * E3 ]* H+ a5 P3 F# _( Y( mlibrary. % a( X c& S: G5 a [: x" _+ v# S3 X
) M; S1 f% }( c Question #11 We've seen managed extensions, but aside from that, what futu + P, y8 R* |& a+ a
re does C++ have at MS and in .NET? " R9 G+ t* n0 p- w. N
3 T- Y6 ?9 x* @0 E4 E& g4 i
Answer C++ is unique in that it is the only Microsoft language that allows 3 `, o- Z6 y" Z B- H the developer to write managed and unmanaged code. So, I can easily see dev ; h$ J. H) r4 J% Y1 {
elopers writing in unmanaged C++ for performance-critical algorithms and the 5 _) E. Z+ [/ O$ p2 @
n using managed C++ for type-safety and component interoperability. I'm sure + D+ j1 u# N" R2 ~ Microsoft will keep C++ going for years to come: device drivers need it, Wi : N+ h( C/ N3 L
ndows is built with it, SQL Server< Exchange, and other BackOffice products 6 W! K% d. h8 c: X
will probably use C++ for a long, long time. # c, O& h/ Z% Z k3 w( v4 K8 w% E & d9 L. R' {) m
6 y3 d- Z; ^7 |9 l4 N. E Question #12 If .NET supports ActiveX/COM, how will security be assured if % s( _5 v; G4 U- X
a C# application runs from within a browser? 5 D& S* p# _. q0 G# |; U 5 w7 K' b) b/ a) f& | e' V: o$ E Answer The .NET runtime offers code access security, which allows an admin 6 g" f: c7 Z1 ?, G3 Bistrator/user to configure security based on code identify. By default, any 1 H( n2 `2 l4 i; q4 U$ ]% A
code downloaded via the Internet or intranet is untrusted and will not be ab 5 \" p) ~6 n2 c+ D$ ile to access files and other resources. In fact, when I build a console appl % F# u0 Z, [; @: }! Mication and run it from a network share, I get an exception when it tries to $ ]' \4 o2 m: ]9 H( c% x access certain resources. If I copy the same file to a local disk directory 0 K6 _1 k" H/ Y1 I! z, e and run it, it runs fine. Code access security is integrated with the runti 2 F$ U5 V3 Z' E3 ]* g# O
me and is too deep a subject to cover here. 7 z: n$ A. b0 Q, h4 `& X 4 G4 D! P( a/ b0 F* M- q 6 P- Q* Q' H% V- G" E# h. R3 y4 O# B _7 Z Question #13 With regards to the .NET runtime, do I need it on the machine 1 w! q7 m& x4 t4 }, I' p# ? that I deploy C# apps on? 7 A2 N0 P* _+ _+ b" P4 x
9 M& B- d+ k; f# h; b, f2 a
Answer Yes. All managed apps need a manager; the runtime is the manager. M 5 ?0 x: }9 J1 N% Q* cicrosoft will eventually package the runtime so that it is freely redistribu ( X- {+ `$ `7 R0 qted. For now, end-users will have to install the full .NET SDK from MSDN web + p- \3 a' G! y; r* L site (when available). This is similar to how VB developer must ship the VB 9 `# V$ N& _5 c6 N& { runtime today. 6 h( K* ^5 b% h- _( \% J4 F! n3 |! Z B
8 b* ^% p9 k. c2 f6 ]4 o) D1 Y # [, i8 C$ n' o$ g Question #14 There has been mention of being able to derive C# classes fro % N- z9 o o( S w& P/ n( Wm VB classes. Is this true and where can we see an example of how to do this & N+ s9 g. `$ W$ k _ \' A" w9 ]
? 5 p9 n% S1 ?* }) c: } : n1 R+ r+ R/ U# e1 G" K
Answer This is true. In fact, any language that targets the runtime can de 8 q, p$ @& c; w
rive from any type created in another language. Also, the Visual Studio debu * `* K6 u7 F8 i' jgger fully supports debugging across languages. Each entry in the call stack 3 w; n6 F% l6 k; z window shows the function on the stack and the language that the function w ! l: |, v: W5 h" c$ Gas written in. This is very cool and got a round of spontaneous applause whe 3 f7 G# w; `/ F- d1 e; b
n shown at the PDC. There are samples in the .NET SDK that demonstrate how t % r1 P4 f8 A' c5 t5 }+ Y9 E
o do this. It's really quite simple. Actually it just happens, there is noth 4 x5 ^8 Y4 L0 D
ing for you to do. You can also throw exception across language boundaries a 3 Q) A3 e! C# x/ i$ Z
s well for error handling. ; T- R; U8 L8 i) |3 V2 F 0 s7 f& O @% |3 Y" k% { 5 b" C6 h% t6 W( v" v7 C2 x3 r
Question #15 Can I derive a C# class from a C++ class? If so, how? / z) m) t3 L C, P0 I4 \( M2 ^. E ! P/ f, b4 [3 i% W# c" _/ H4 @! f+ g6 `
Answer Same as the answer above: Any managed language can inherit from a t . \- c0 E; Q, X( U! c. ^
ype in another other managed language. If you use native C++, then you can't 1 g/ o6 S$ Q* N" X6 t/ p, J
do this, however. + ~% Q, v( [/ O
5 ~/ s. U* i, _2 F
. ~' r& m1 R2 M- | N( c Question #16 Will the new version of MFC have the option of working in a m % G* G! {, E+ h% O5 J2 Panaged environment? + g! i# c( j8 M2 l8 W
- L" y* a$ I% x) T- _. [' H
Answer I haven't been tracking the new version of MFC but I'm pretty sure " V7 y2 n! A. ^, b- S
the answer is no. MFC is all unmanaged just like it has always been. For man ( F i$ V, o* I0 C
aged applications, Win Forms is the window manager that people should use. " m5 ?2 C0 L: T' J7 e 4 _7 K/ i* Y& b . {; ~" X$ H( c& \
Question #17 If the new version of MFC will operate in a managed environme 1 A3 w; g) l! d/ R, U
nt, will it have the option of building desktop Win32 apps and not needing . 1 G7 F8 }9 w( I& e% UNET runtime support? : V: o3 X- A8 L 1 }$ U* x3 F: A, d, [' z
Answer I'm pretty sure MFC is unmanaged and will never require the runtime ! s( W0 H- `3 G. 8 o7 g& f, G. Q' [: r: K * Y; y2 P, r6 m! z( G
' z9 p$ f/ K) {6 B% k- _
Question #18 Stroustrup has been quoted as saying "I have not expressed a & S, M8 q# t/ H; M8 ^9 ]$ O2 G6 ~- E9 ~2 Ftechnical opinion on C#, and I don't plan to do so. C# is yet another propri @6 Z/ T9 i, K' j6 n4 Retary language specialized for Microsoft's Windows system." Do you agree or 7 i: a. _" ?1 F9 T/ M8 q) V
do you think C# is more of a generic language open to other platforms? , D+ i4 T/ n! r 4 B! n2 T' ^! X2 r
Answer C# is a language designed for the common language runtime; not Wind * t, a* K( U# i' V# b! Bows. The CLR can be ported to other operating system like Linux and Solaris ; p/ ~; W% ?( `9 `9 z2 `and if the CLR is there, then C# will probably be there as well. In the gran 3 Z% q. B9 {( S h8 U* C
d scheme of things, C# is not that important or interesting. It is a syntax 6 F0 h* s* S/ O
checker that spits out intermediate language consumable by the runtime. You * n ^) P# V+ Y3 g. h! J! i
can love C# or hate C# - your choice. I happen to love it and think is the b ! r2 X2 k5 h8 [1 I7 d
est programming language for the types of applications I write. 8 ^: k% N4 w* H* }+ l" Z
) V5 T, {$ F' O" s' ]; O 8 l' m. q' {) F: J, m ` Question #19 I heard a rumor that VB7 will allow static linking of the run ; \! W) r( t8 i! I" f" |: g5 Q% S7 s0 R9 G
time, like MFC. Is there any truth in this? If so, will C# also be able to c * l7 H$ l, q& ]+ Ireate standalone apps? # j8 T, C- {( @: c; O . s; a: I, M5 L( ~
Answer This is absolutely not true. No language will able to statically li $ z$ J- w# ?! H; ]2 V5 ank to the runtime. # c* |7 B; e f) z6 `6 J/ l 2 G2 M2 ^ D) Z7 W, f; I/ E4 E
+ F% D) A3 l2 k2 Q9 n! k: s Question #20 Does C# still use resource files? If not, what mechanism is p 4 ^/ E0 h) h8 hrovided to allow for localization? - O9 h3 o8 }9 W8 I$ I
" A' p+ F s$ p/ B
Answer The .NET frameworks designers have created a new resource model. Re 0 F0 w8 m# s1 ?0 P
sources can be embedded in EXE or DLL files the way Win32 resources are or r ; P# @. O. h3 j1 m+ D9 ?
esources files can now be stand-alone files like a single jpg or bmp file. T 1 y, t4 j" s1 w* m* {1 i2 lhere is also the concept of fall-back cultures. If the Swiss German resource P0 ~2 N2 n4 R; w& R$ N
can't be found, the runtime looks for the German resource. If the German re % E* ^' ] w9 r8 N$ {! Psource can't be fond, it looks for the "default" resource. Each language wil # n6 Y0 A8 t, v# V4 A: ml typically be built and shipped as a separate assembly rather than packagin " n0 p! N+ v5 G% Y
g everything up into a single file. Like code access security, a full discus 9 g& @$ D* P2 F z/ Vsion of the new resource model is too much to put here. 3 K5 m1 l$ |" Q- L; R, V
% K& J8 k& v/ s
, c5 Z3 k2 o- t5 m/ K