Handling array arguments.
BasicATLServer2.zip
-
Open BasicATLServer and add another interface.
- Open the project and go to the idl file.
- Declare
IRawArrayAccess interface
.
- Include definition of IRawArrayAccess into the
coclass clause.
- Open TheCoClass header file and add the
IRawArrayAccess to the
base classes
.
- Add IArrayAccess to the
COM MAP
.
- Add
C++ prototypes
for the functions of IRawArrayAccess.
- Build the project. It compiles but the linker is missing
the implementations.
-
Implement the IRawArrayAccess functions.
Add the implementations to the file
TheCoClass.cpp
.
-
Build and test the client application.
- In the VBA IDE goto Tools\references and check the server in.
- Add the VBA code
to a worksheet module.
- Test the double click event.