yes, feel free to kill me, I forgot to add: #include <inttypes.h> after limits.h include, otherwise it won't compile on mingw Regards -- Gianluigi Tiesi <sherpya at netfarm.it> EDP Project Leader Netfarm S.r.l. - http://www.netfarm.it/ Free Software: http://oss.netfarm.it/