O'Reilly logo

Applying COM+ by Gregory Brill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Passing Block Data, SAFEARRAYs

Certain Microsoft technologies are extremely useful, relatively easy to use, and almost impossible to find coherent documentation or examples for. A SAFEARRAY is just such a creature. Simply put, VB arrays are represented internally as something called a SAFEARRAY. SAFEARRAYs can be multi-dimensional, have esoteric locking considerations, and have some of the most confusing, obscure, and unhelpful documentation I've come across. In spite of this, they are very useful; they can allow you to pass arbitrary-length blocks of data over the network using type library marshaling.

Type library marshaling is the default, pre-installed marshaler that enables COM to sbasic types as arguments to your interface methods—integers, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required