I suppose you are using MFC.
In that case, you can use the class COleSafeArray to work with safe arrays... This class hides SAFEARRAY complexity providing methods from creating new empty elements (Create()), initialize them from different types (including SAFEARRAY - this will probably interest you), add values, and finnaly copy its contents back to SAFEARRAY (Copy() - this will also be of interest to you).
Try some reading in MSDN about this class, it will do the job.
Main Topics
Browse All Topics





by: job_sPosted on 2002-02-15 at 01:04:03ID: 6803618
U can use the parameter as a VARIENT *
and fill the type of Vaient as Array.