# ATL/MFC with UE 4.20 and above

**URL:** <https://forums.unrealengine.com/t/atl-mfc-with-ue-4-20-and-above/437966>\
**Category:** C++\
**Tags:** build-tool, buildcs, unreal-engine, CPP, question\
**Created:** [November 20, 2018, 10:28am UTC](https://forums.unrealengine.com/t/atl-mfc-with-ue-4-20-and-above/437966 "2018-11-20T10:28:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AR5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AR5](https://forums.unrealengine.com/u/AR5)\
**Post date:** [November 20, 2018, 10:28am UTC](https://forums.unrealengine.com/t/atl-mfc-with-ue-4-20-and-above/437966/1 "2018-11-20T10:28:20Z")

</div>

Hi.

How do I correctly include ATL headers and link with atls.lib?

In UE 4.19 the build tool checked for atlmfc directory in visual studio directory and added it include directories.

In UE 4.20 and above this code was deleted (commit **7ce4c05fda8f81ae0637289e6a3cfe5856c2cb89** ).

What is the proper way of including ATL/MFC?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![simco50](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@simco50](https://forums.unrealengine.com/u/simco50)\
**Post date:** [February 12, 2019, 11:12am UTC](https://forums.unrealengine.com/t/atl-mfc-with-ue-4-20-and-above/437966/2 "2019-02-12T11:12:05Z")

</div>

Hi,  
Have you had any luck with this problem?  
Thanks

---

<div class="post-metadata">

**Author:** ![AR5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AR5](https://forums.unrealengine.com/u/AR5)\
**Post date:** [February 13, 2019, 8:02am UTC](https://forums.unrealengine.com/t/atl-mfc-with-ue-4-20-and-above/437966/3 "2019-02-13T08:02:49Z")

</div>

Hi. We have just copied deleted code from 4.19 to our own build file.

---

<div class="post-metadata">

**Author:** ![simco50](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@simco50](https://forums.unrealengine.com/u/simco50)\
**Post date:** [February 13, 2019, 11:22am UTC](https://forums.unrealengine.com/t/atl-mfc-with-ue-4-20-and-above/437966/4 "2019-02-13T11:22:28Z")

</div>

Awesome thanks!  
I’ll probably just do the same (Add the lib/include paths in VCEnvironment.SetupEnvironment)  
I wanted to add a flag in the TargetRules but unfortunately it’s not available in VCEnvironment.  
I do wonder why it’s been removed since 4.20  
Anyway, thanks for the reply!
