fixed pointers which were using 0 instead of NULL and syntax in resource.h