×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

See details inside...

1 all the application developed with vb.net and c# are managed code.
=>Right. And vb, c++ which run directly on windows OS are unmanaged code.

2 the application developed with vb.net can be managed code or unmanaged code. It depends
=> Incorrect. See 1.

3 Visual C++ is the only language that has the ability to mix managed code and unmanaged code
=>Incorrect. VB.Net and C# (and other manage code) can use unmanged code.

4 the vb.net and c# cannot access win32 api directly because managed code cannot access win32api.
=> Incorrect. Both VB.Net and C# can access win32 API. It's called Platform invokation or P/Invoke in short.

5 if one want to develop application with win32api he/she must develop with c++ because c++ is the only program can access win32api
=> Incorrect. See 4.
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / .net 概念问题 (managed code and unmanaged code)
    我这样理解对吗?
    1 all the application developed with vb.net and c# are managed code.
    2 the application developed with vb.net can be managed code or unmanaged code. It depends
    3 Visual C++ is the only language that has the ability to mix managed code and unmanaged code
    4 the vb.net and c# cannot access win32 api directly because managed code cannot access win32api.
    5 if one want to develop application with win32api he/she must develop with c++ because c++ is the only program can access win32api
    • See details inside...
      1 all the application developed with vb.net and c# are managed code.
      =>Right. And vb, c++ which run directly on windows OS are unmanaged code.

      2 the application developed with vb.net can be managed code or unmanaged code. It depends
      => Incorrect. See 1.

      3 Visual C++ is the only language that has the ability to mix managed code and unmanaged code
      =>Incorrect. VB.Net and C# (and other manage code) can use unmanged code.

      4 the vb.net and c# cannot access win32 api directly because managed code cannot access win32api.
      => Incorrect. Both VB.Net and C# can access win32 API. It's called Platform invokation or P/Invoke in short.

      5 if one want to develop application with win32api he/she must develop with c++ because c++ is the only program can access win32api
      => Incorrect. See 4.