You might take a look at using Inline::C to wrap your already working C.
-- We're looking for people in ATL
In reply to Re: Controlling X cursor by Fletch in thread Controlling X cursor by gri6507