Click here to Skip to main content
15,895,538 members
Articles / Desktop Programming / WTL

Using a View (dialog) exported from a dynamically loaded DLL (SDI) in WTL

Rate me:
Please Sign up or sign in to vote.
3.00/5 (6 votes)
6 Oct 20034 min read 71.5K   1.5K   17  
An article on on how to load DLLs that export views (dialogs) into a SDI Application under WTL
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#pragma once

// Change these values to use different versions
#define WINVER		0x0400
//#define _WIN32_WINNT	0x0400
#define _WIN32_IE	0x0400
#define _RICHEDIT_VER	0x0100

#include <atlbase.h>
#include <atlapp.h>

extern CAppModule _Module;

struct  IDLLFormView
{
	virtual ~IDLLFormView() { }
	virtual HWND 	Initialize(HWND hParentWnd) = 0;
	virtual void 	Destroy() = 0;
	virtual TCHAR* 	Description() = 0;
};



#include <atlwin.h>
#include <atlmisc.h>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Dave has been programming for the past 20+ years first on a variety of platforms and operating systems using various languages. As a hobbyist Dave cut his teeth on the Commodore Pet and the 64 coding in basic and then moving to 6502 ASM. Dave moved to the Amiga using 68000 ASM and then C. His knowledge of the C language offered the stepping stone for him to make his hobby his profession taking a position coding C on an AIX Unix platform. Since then he has worked on many flavors of Unix, QNX, Windows (3.11 – present), and has been coding games for his Pocket PC in his spare time.

Dave lives in Indiana with his two teenage daughters and two cats.

Comments and Discussions