示例#1
0
文件: cgo.go 项目: jmptrader/com
func GetElementDirect(array *types.COMArray, index int64, element interface{}) error {
	return errors.MaybeError(C.SafeArrayGetElement(array, index, unsafe.Pointer(&element)))
}
示例#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)))
}