>To All,
>
>I am attempting to pass an array of doubles to a VBA method in AutoCAD.
>
>The documentation says the array is :
>
>"Variant (three-element array of doubles); input-only
>The 3D WCS coordinates specifying the line start point."
>
You might try using the code I posted in FAQ 696 for creating a SafeArray as a memory structure and passing a pointer to it, assuming it wants a SafeArray. If not, you might try stringing together a ULONG for the value 3, followed by the three doubles converted to strings (there's conversionn code for creating doubles in memory in my ClsHeap class.)