|
From: Daniele C. <dca...@in...> - 2004-11-11 15:01:41
|
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!!
At 15.15 11/11/04, you wrote:
>----- Original Message -----
> >From: "Daniele Cavallini" <dca...@in...>
> > I had some problem.
> > My problem was caused by driver of printer. There was a series of HP
> drivers that were a bit buggy and by that I mean they turned
>off the floating point exception handling and never returned the state.
>
>Thanks, Daniele.
>
> > You might want to save the state before the call, then return the state
> after the call.
>
>Save the state of what? Could you explain how I would do this?
> > You can try if is this problem add a new printer and set this new
> printer like defaut (for example print pdf).
>Ok, will do. I might also try deleting all printer drivers and see if that
>helps
>
>Tom
>.
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by:
>Sybase ASE Linux Express Edition - download now for FREE
>LinuxWorld Reader's Choice Award Winner for best database on Linux.
>http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
>_______________________________________________
>Quesa-develop mailing list
>Que...@li...
>https://lists.sourceforge.net/lists/listinfo/quesa-develop
|