Example #1
0
File: cgo.go Project: jmptrader/com
func PutElement(array *types.COMArray, index int64, element interface{}) error {
	return errors.MaybeError(C.SafeArrayPutElement(array, index, unsafe.Pointer(&element)))
}
Example #2
0
// PutElement stores the data element at the specified location in the
// array.
//
// AKA: SafeArrayPutElement in Windows API.
func PutElement(safearray *COMArray, index int64, element interface{}) error {
	return com.MaybeError(C.SafeArrayPutElement(safearray, index, unsafe.Pointer(&element)))
}