×

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

ATL for COM servers

ATL is a great helper to develop COM servers, and saves lots of pains writing raw C++ COM servers from scratch. It's main purpose is not for Windows UI applications, though ATL 3.0 adds sufficient such supports. You can still write fairly sophisticated Windows applications like MS Word using pure ATL. Any framework is just wrapper around Win32 API to facilitate development. As for option "Support MFC", my suggestion is not to check it. Doing so will force you to ship MFC runtime DLL which is about 1 MB, a real pain in size critical situations like web deployment. If developing COM servers for legacy MFC applications, try MFC COM instead of ATL COM framework.
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Hi experts,What do you use as developing COM?ATL or MFC?if using ATL with MFC supported,Can it completely replace using MFC?Thanks.
    • ATL for COM servers
      ATL is a great helper to develop COM servers, and saves lots of pains writing raw C++ COM servers from scratch. It's main purpose is not for Windows UI applications, though ATL 3.0 adds sufficient such supports. You can still write fairly sophisticated Windows applications like MS Word using pure ATL. Any framework is just wrapper around Win32 API to facilitate development. As for option "Support MFC", my suggestion is not to check it. Doing so will force you to ship MFC runtime DLL which is about 1 MB, a real pain in size critical situations like web deployment. If developing COM servers for legacy MFC applications, try MFC COM instead of ATL COM framework.
      • Can you tell me the approach for developing COM with MFC?VC++ seems not provide wizzard for developing COM with MFC.Can this only be done by hand?