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

  • IBM Worklight is a mobile application development platform that lets you extend your business to mobile devices. It is designed to provide an open, comprehensive platform to build, run and manage HTML5, hybrid and native mobile apps.

  • In support of their business continuity and disaster recovery plans, many midsized companies endeavor to avoid putting all their eggs in one basket. Understanding the critical role of last-mile connectivity and always available Internet access for their enterprises, savvy firms utilize redundant connections from multiple service providers. Despite the good intentions, their Internet connectivity risk may still be in a single basket. That is because internet service providers (ISPs) and competitive local …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds