[futurebasic] Re: USB Printer Driver /That x**/%# alert

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2000 : Group Archive : Group : All Groups

From: lcs@... (Laurent SIEBENMANN)
Date: Wed, 19 Jul 2000 02:58:50 +0200 (MET DST)

Hi Jamin,

 > The ZBasic App, and all apps made with it complain about no 
 > printer being selected.  At the end of this message is a 
 > simple patch that will stop that dialog from appearing.  This 
 > patch can be applied to any Zbasic app, or if that is a 
 > hassle, you can apply the patch to ZBasic itself - then every 
 > app you compile after that will be fixed.  The patch should be 
 > safe, all it does is change the ID of the alert dialog the 
 > runtime is trying to use to display the warning, so NOTEALERT 
 > just continues on its way when it can't find the resource. 

Thanks! The patch seems to work OK.  But I am worried. I recall 
that removing the resources in question from the resource fork of 
the compiled apps sometimes worked and sometimes did not work; I 
cannot recall quite what happened when it failed.  (Missing 
resource complaint?)  Admittedly, I haven't seen that trouble 
turn up yet after your patch.

Alternatively, would it be possible to turn some JSR into a NOP to 
cut out the alert routine?

Cheers

Larry S.

PS TO OTHERS: The patch is a nice simple example of resource 
patching. Worth reading and salting away!