It's important that you consult with your vet before giving your dog any medication, and never use time-release Benadryl with your dog for any reason.
Another reason why your dog may wheeze is that he has Kennel Cough, which can be serious.
A more serious reason for wheezing can be heartworms.