This sample is located in \Samples\COM\iid_is_size_is.
Note To use this sample, it is recommended that you have Microsoft® Visual C++® version 5.0 or later installed.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
This sample shows how to create an interface that uses the iid_is and size_is marshaling support of the Microsoft VM and jactivex.
To compile the sample
Run Nmake.exe to register the makefile in \Samples\COM\iid_is_size_is.
To run the Sample
Run Client.exe. The sample should display the following message:
successfully bound to IID_IDispatch failed to bind to IID_IErrorInfo (hr=80004005) before FlipIntArray call: 0 1 4 9 16 25 36 49 64 81 after FlipIntArray call: 0 -1 -4 -9 -16 -25 -36 -49 -64 -81 after FillBSTRArray call: 0 1 2 3 4
This source file shows how to implement an interface that has iid_is and size_is attributes.
client.cppThis source files shows how to activate the Microsoft VM through the Java moniker and use interface methods that use iid_is and size_is attributes.
sample.idlThis interface description file shows how to use the custom type library attributes that can transmit iid_is and size_is rules to jactivex.