Handling array arguments.

BasicATLServer2.zip
  1. Open BasicATLServer and add another interface.

    1. Open the project and go to the idl file.
    2. Declare IRawArrayAccess interface .
    3. Include definition of IRawArrayAccess into the coclass clause.
    4. Open TheCoClass header file and add the IRawArrayAccess to the base classes .
    5. Add IArrayAccess to the COM MAP .
    6. Add C++ prototypes for the functions of IRawArrayAccess.
    7. Build the project. It compiles but the linker is missing the implementations.


  2. Implement the IRawArrayAccess functions.

    Add the implementations to the file TheCoClass.cpp .


  3. Build and test the client application.

    1. In the VBA IDE goto Tools\references and check the server in.
    2. Add the VBA code to a worksheet module.
    3. Test the double click event.

Hosted by www.Geocities.ws

1