Or let's say, both sentences say that it was not necessary for him to go to the meeting, but with "didn't need," he either went or not; it was uncertain. However, with "needn't have gone," it is certain that he went to the meeting. Be aware though, that if you use proper grammar, you shouldn't...