CodeWright Extension DLL using ATL/WTL | CodeGuru

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 […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 23, 2000
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.