Yong Sun wrote: > However, the xEvent definition is too long and too complex You don't have to declare all of its fields in the Pyrex file, only the ones you want to access. As long as it's in a "cdef extern from" block, the actual definition in the .h file will get used at C compilation time. Greg