开发者

IS there a different in WebService programming in 32bit and 64bit?

开发者_运维技巧

IS there a different in WebService programming in 32bit and 64bit ?

under server 2003 (C# programming )

thank's in advance


There is really no difference between a 32 and 64 bit C# Web Service program than there is for any other type of C# program. The .Net framework was designed to be a mostly platform agnostic framework and it only creeps up in certain areas. Namely

  • PInvoke: Ideally this is written in a platform agnostic manner but it can be done incorrectly to be tied to a specific platform
  • COM Interop: Native component may be tied to a particular architecture


(to re-state Jared's reply in slightly different terms)

If you use pure .net code, then just compile for "Any CPU" (the default) and it will work in 32-bit and 64-bit environments.

However, if any part of your application (e.g. a C++/COM dll) is 32-bit, then you have to change the compile type to "x86" to force the entire application to run under WOW64 (as a 32-bit application), or you have to rebuild/get the dll in a 64-bit native form. Essentially you cannot mix 32-bit and 64-bit code in your application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜