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

  • With JRebel, developers get to see their code changes immediately, fine-tune their code with incremental changes, debug, explore and deploy their code with ease (both locally and remotely), and ultimately spend more time coding instead of waiting for the dreaded application redeploy to finish. Every time a developer tests a code change it takes minutes to build and deploy the application. JRebel keeps the app server running at all times, so testing is instantaneous and interactive.

  • Confused by all the agile advice? Relax! With the Agile for Dummies eBook by your side you'll learn the fundamentals of agile and how to increase the productivity of your software teams while enabling them to produce higher-quality solutions that better fulfill customer needs much faster.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds