Click here to Skip to main content
15,884,537 members
Articles / Programming Languages / C

COM in plain C, Part 7

Rate me:
Please Sign up or sign in to vote.
5.00/5 (15 votes)
8 Aug 2006CPOL13 min read 93.3K   2K   83  
An ActiveX Script Host with custom COM objects. This allows a script to call C functions in your app.
#ifndef _HOSTSITE_H
#define _HOSTSITE_H

// The definition of our MyRealIActiveScriptSite multiple interface
// object. It has an IActiveScriptSite object as the base object,
// and an IActiveScriptSiteWindow sub-object.
typedef struct {
	IActiveScriptSite			site;		// The IActiveScriptSite must be the base object.
	IActiveScriptSiteWindow		siteWnd;	// Our IActiveScriptSiteWindow sub-object for this IActiveScriptSite.
} MyRealIActiveScriptSite;

void initIActiveScriptSiteObject(void);

extern MyRealIActiveScriptSite	MyActiveScriptSite;

#endif

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions