Exemplo n.º 1
0
Arquivo: cgo.go Projeto: jmptrader/com
func GetElementDirect(array *types.COMArray, index int64, element interface{}) error {
	return errors.MaybeError(C.SafeArrayGetElement(array, index, unsafe.Pointer(&element)))
}
Exemplo n.º 2
0
// GetElementDirect retrieves element value at given index.
//
// AKA: SafeArrayGetElement in Windows API.
func GetElementDirect(safearray *COMArray, index int64, element interface{}) error {
	return com.MaybeError(C.SafeArrayGetElement(safearray, index, unsafe.Pointer(&element)))
}