To compare the safety and efficacy of aerosolized pentamidine and dapsone in the prevention of Pneumocystis carinii pneumonia (PCP) in high-risk HIV-infected patients who are intolerant to trimethoprim and/or sulfonamides.