1045 has enough carbon to be hardenable. I don't have code experience, but if I was doing it I would preheat & post heat. You should use a low hydrogen welding process. You may be able to eliminate the post heat if You cool slowly depending on part size. Is the 1045 heat treated? will it be after welding?