Working with SafeArray's

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Working with SafeArray's

Wolfgang Wunderlich
Hello,

i try to transfer 2 dimensional SafeArrays between Visual Basic (as
COM Client) and a COM oject implementation in Dolphin Smalltalk.

The IDL:
[ uuid(9CE0A112-85FB-4779-8D15-F2EF197C5F02), version(1.0) ]
library STExample
{
        importlib("stdole32.tlb");
        importlib("stdole2.tlb");
       
        //  Primary dispatch interface for Test
       
        [ uuid(59DA5EAA-30C6-4C37-8D35-01CF37C26281),odl, dual, oleautomation
]
        interface ISTExample : IDispatch
        {
                HRESULT test([in] SAFEARRAY (BSTR) input, [out, retval] SAFEARRAY
(BSTR)* result);
        };

        //  Class information for Example

        [ uuid(679EA2A8-860F-4C49-9761-E9540418865D) ]
        coclass Example
        {
                [default] dispinterface ISTExample;
        };
};

Can anybody provide me some simple example code how to access the
safeArray and especialy how to create, fill and return a safeArray
from Dolphin.

Currently I am using only an evaluation lincense of Dolphin 5 XP. So I
have no access to the SAFEARRAY implementation and no documentation.

Wolfgang Wunderlich