Click here to Skip to main content
15,881,204 members
Articles / Desktop Programming / MFC

How to use Dynamic External MFC CView Class Objects (which exists in a DLL library) in a VBA Host MFC Application

Rate me:
Please Sign up or sign in to vote.
1.00/5 (10 votes)
8 Dec 20023 min read 57.2K   389   11  
Implement interface between two existing DLL Library in a VBA Host MFC application.
#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */

/* link this file in with the server and any clients */


 /* File created by MIDL compiler version 6.00.0347 */
/* at Tue Dec 10 10:32:02 2002
 */
/* Compiler settings for TangramMFC.idl:
    Os, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#if !defined(_M_IA64) && !defined(_M_AMD64)

#ifdef __cplusplus
extern "C"{
#endif 


#include <rpc.h>
#include <rpcndr.h>

#ifdef _MIDL_USE_GUIDDEF_

#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)

#else // !_MIDL_USE_GUIDDEF_

#ifndef __IID_DEFINED__
#define __IID_DEFINED__

typedef struct _IID
{
    unsigned long x;
    unsigned short s1;
    unsigned short s2;
    unsigned char  c[8];
} IID;

#endif // __IID_DEFINED__

#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}

#endif !_MIDL_USE_GUIDDEF_

MIDL_DEFINE_GUID(IID, IID_IApplication,0x4E8CE7FF,0xF372,0x49BD,0x88,0x10,0xC7,0xD5,0xE0,0xD3,0xB8,0xA8);


MIDL_DEFINE_GUID(IID, IID_IDocument,0x6E1F410E,0x8EF6,0x40F1,0x81,0x3F,0x79,0x1D,0x2A,0xAC,0xF6,0x80);


MIDL_DEFINE_GUID(IID, LIBID_TangramMFCLib,0xFB216342,0x703E,0x4DDB,0x82,0x70,0x9C,0x61,0xD3,0x0F,0x2D,0xD0);


MIDL_DEFINE_GUID(IID, DIID__IApplicationEvents,0xA03B0D2E,0x54F7,0x4CCD,0xA4,0x30,0x7C,0x9A,0xDB,0x02,0x20,0x69);


MIDL_DEFINE_GUID(CLSID, CLSID_Application,0x08279324,0x3EC7,0x4335,0x8D,0xAC,0x7F,0xA0,0xB5,0xF1,0xBC,0x3C);


MIDL_DEFINE_GUID(IID, DIID__IDocumentEvents,0x71EE3557,0xAB66,0x4CFB,0x86,0xA9,0xB7,0x5C,0x96,0xBF,0x43,0xDB);


MIDL_DEFINE_GUID(CLSID, CLSID_Document,0x340D3BB4,0xE865,0x4E0D,0x9C,0x28,0x17,0x84,0x58,0x61,0x1B,0x63);

#undef MIDL_DEFINE_GUID

#ifdef __cplusplus
}
#endif



#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/

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
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions