×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

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.