To compare the safety and effectiveness of drug therapy with aerosolized pentamidine (PEN) with that of conventional therapy, sulfamethoxazole plus trimethoprim (SMX/TMP) in the treatment of Pneumocystis carinii pneumonia (PCP) in patients who have AIDS, are HIV positive, or are at high risk for HIV infection.