How to pass an array as a parameter to automation server in BCB 3.0

Hi:

    In my implement, I need to pass or return an array of data to
automation. As I know, I must pass a safearray to it. Based on
the Charlie Calvert's book, it works in BCB 1.0. But as you
known, borland changed a lot about COM in BCB 3.0. I
have no idea how to pass an array to automation under
the BCB 3.0 package. Does anyone has an idea or know
where I can get some examples about this problem.

Best Regards,
Simon Su