Michael Stefaniuc : comctl32: LockResource() returns a LPVOID so don' t cast its return value.