Hi
I am using an COM in Delphi 7 that was created in C# and one of the methods of a class return an array of an type. However, when Delphi imports it, instead of an array of that type I get an PSafeArray.
How can I cast the items of that array into its base type?
I've tried to use SafeArrayGetElement but I couldn't find a way of casting the item into its original type.