May 03, 2024, 08:01:14 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


BYREF and Arrays in COM programming

Started by dossic, December 15, 2008, 02:07:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dossic

Hi!

I am using the new COM interface via disphelper with great satisfaction.
I still have a couple of questions about that :
- may I use a variable as BYREF in GetComProperty ?
- how will I use arrays in GetComProperty ?

Sorry for asking help, I found no way to get thru.

Thanks to everybody.

Carlo

dossic

I'll try to put in an clearer form (sorry for my English, is getting worse...).

I am using  the nice ATLB103 software to elucidate and convert to EB all methods and functions.  However, I had a couple of troubles  :
case 1

declare virtual ReadAnalogWaveform (
    int PositiveInput,                                  // AIN <enum> [in]
    int NegativeInput,                                  // AIN <enum> [in]
    int NumberOfSamples,                                // VT_I4 <int> [in]
    pointer *pRetVal                                    // *VT_SAFEARRAY [out]
    ), int;                                             // VT_HRESULT <int>
 
case 2

a variable declared as [in][out]

Can you please help me to translate them  into EB code (if it is possible)?


Thanks for the time any of you are dedicating me

Yours  Carlo