The XLL+ COM Wrapper Generator can be used to generate all the source files of a Microsoft Visual Basic 6 project. The COM object produced from the project will make all the add-in functions of an XLL available from stand-alone programs written in a language that suppports COM, including Visual Basic 6, C++, Visual Basic.NET or C#.
For a project MyAddinLib containing a class MyAddin, the following files are generated:
MyAddinLib.vbp | Visual Basic 6 project file. |
MyAddin.cls | Class file containing the COM object source. The class will have one COM method for each add-in function in the XLL. |
ExcelWrapper.cls | Helper class which controls an Excel application instance. |
The generator makes use of the following libraries, which are required when the COM library source code is generated. Note that they are not required by users of the compiled COM library.
The template files "projectEA.vbp.txt", "class.cls.txt" and "ExcelWrapperEA.cls.txt" must be located in a sub-directory Templates beneath the directory containing the executable file ComWrapperGen.exe.
The compiled COM object requires the following support files at run-time.
Further information | |
Using the wrapper generator | |
Generated code | |
Calling the COM methods | |
Deploying wrapper libraries | |
Using ComWrapperGen on the command-line | |
XLL Host |
Using the wrapper generator | Generated code | Calling the COM methods