Adding ATL to MFC Project

This code is a very basic sample of "adding" ATL to the existing MFC project. I'm getting asked about MFC+ATL very often. Hope people find it useful.

Contains VB(5.0) client and OCX(VC++5.0) that has MFC control and ATL In-Proc server.

The way I did it is straightforward: Wizards generated 2 projects, MFC(Control) and ATL(In-Proc server) and essentially I just copied ATL code into MFC and used IDL file instead of ODL.

Download zip file 15KB.



Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

  • Live Event Date: August 14, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Data protection has long been considered "overhead" by many organizations in the past, many chalking it up to an insurance policy or an extended warranty you may never use. The realities of today make data protection a must-have, as we live in a data driven society. The digital assets we create, share, and collaborate with others on must be managed and protected for many purposes. Check out this upcoming eSeminar and join eVault Chief Technology …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds