> For the complete documentation index, see [llms.txt](https://docs.soraco.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.soraco.co/docs/faq/cannot-access-a-disposed-object.md).

# Cannot access a disposed object

If you get the error below when opening the VC++ MFC sample with Visual Studio 2017, the reason is that MFC is not installed by default with VS 2017.

![](https://support.soraco.co/hc/article_attachments/115017891823/mceclip1.png)

&#x20;

To install MFC, make sure that the MFC component is selected when you install VS 2017.

![](https://support.soraco.co/hc/article_attachments/115017713406/mceclip2.png)
