CodeWright Extension DLL using ATL/WTL

Environment: VC6 SP4, NT4 SP3, CodeWright Editor

There used to be a sample of an MFC extension for CodeWright on the Premia Web Site. This one is similar but uses ATL/WTL instead. This DLL was initially created with the ATL Wizard (aren't they all).

The stdafx header pulls in a bunch of ATL and WTL headers and doesn't really use them at all (yet). You'll be able to tune them out as you go.

Look for variables and names with 'atl_test'-- they probably have to be revised as further clones are taken of this arrangement.

I have removed almost all COM server support--most COM client functions should work since the caller must call ole initialize. CodeWright??

I use events a lot so there is a general handler for them. I also use the dinkumware version of the libraries ( you may not, the standard ones should work okay ).

Note--exports.h header must be hacked if you include it (you'll probably need to. The hacked version leaves out StrTrim because shlwapi.h has hogged that name already!!

The most convenient way to hack on this is to use the Brief keymap and to use F9/shift-F9 to load/unload the DLL and F10 to exec functions.

Downloads

Download demo project - 54 Kb


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: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • On-demand Event Event Date: October 29, 2014 It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this webcast, Gene Kim discusses these survey findings and shares woeful tales of artifact management gone wrong! Gene also shares examples of how high-performing DevOps …

Most Popular Programming Stories

More for Developers

RSS Feeds