No building or structure shall be erected, enlarged, structurally altered or moved, no new use shall be established, and no building permit shall be granted pursuant to the Codes of New York State, until a zoning permit therefor has been issued by the Code Enforcement Officer. No alterations to an existing building shall be made without a zoning permit, unless such alterations are exempt from a building permit pursuant to the Codes of New York State. No zoning permit, nor any certificate of occupancy or compliance pursuant to the Codes of New York State, shall be issued for any building where said construction, addition, alteration, moving or use thereof would be in violation of any of the provisions of this chapter, or where any necessary Town Planning Board subdivision approval has not been granted.