|
From: Tom S. <to...@as...> - 2004-11-15 17:50:35
|
> example: > /* > unsigned original_mask = _controlfp(0,0); > unsigned mask = original_mask; > > mask|=(_EM_ZERODIVIDE); > _controlfp(mask, _MCW_EM); > */ > CPrintDialog pd(FALSE); > pd.GetDefaults(); > > float a,r; > a=0; > > r=1/a; > > If I set HP laserjet 1100 like default program crash. If I canc /* and > */ program run fine. > With other printer I have not problem.See the documentation of _controlfp. > Try my little sample... is more simple solve this. > All only in WIN 98!! Yes it was the printer driver for me too. Your solution sorted it out. Thankyou very much Daniele! Tom |