Have you looked at the sample that comes with the lib.. I doubt this does not work there.