Looks like you need a VARIANT that contains a SAFEARRAY. Try this
        int data[4]= {1,2,3,4};
    COleSafeArray sa;
    //Populate SafeArray with an array of int
    sa.CreateOneDim(VT_I4, 4, data);    
    VARIANT* myVariant = ((LPVARIANT)sa);
Im assuming you have MFC support in your project. For more information, refer to the 
ColeSafeArray help on the MSDN.
Hope this helps
					
				
			
			
				
	Bilal Durrani
NI