Click here to Skip to main content
15,895,781 members
Articles / Programming Languages / C

COM in plain C, Part 2

Rate me:
Please Sign up or sign in to vote.
4.96/5 (98 votes)
20 Apr 2006CPOL39 min read 276.3K   6.2K   165  
How to write a COM component in C that can be used by script languages such as VBscript, Visual BASIC, jscript, etc.
' A VBscript example of using IExample2.dll
set myObj = CreateObject("IExample2.object")
myObj.Buffer = "Hello world"
MsgBox myObj.Buffer, 0, "GetString return" 

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