What's the fundamental difference between MFC and ATL?

后端 未结 3 1513
無奈伤痛
無奈伤痛 2021-01-29 17:45

Assuming I am only using them for \"normal\" GUI programs (no COM, no ActiveX, nothing fancy), what is the fundamental difference I will see between ATL and

3条回答
  •  独厮守ぢ
    2021-01-29 18:27

    ATL is a set of classes meant to simplify the implementation of COM objects.

    You can use it without MFC. At my job, we use ATL to expose COM interfaces to computational code. There is no GUI involved, it is for us to be able to call this computational code from eg. Excel VBA.

    Look at some COM guide/tutorial to see what it abstracts.

    MFC is just a set of GUI wrapper classes to the Win32 API. Look at some Win32 API tutorial to see what it abstracts.

提交回复
热议问题