[futurebasic] Re: [FB] Report Printing

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Mon, 20 Jun 2011 21:44:30 +1200
Brian S wrote:

>> (3) While not legacy/deprecated, PMSessionBeginPage(), PMSessionEndPage() and PMSessionEndDocument() are not in 64-bit Carbon 


This obstacle to making your printing demo run in 64-bit Carbon is easily overcome. Declare and use the 'NoDialog' equivalents PMSessionBeginPageNoDialog(), PMSessionEndPageNoDialog() and PMSessionEndDocumentNoDialog().

> (4) Many of the dereferences( e.g. printSession.nil&) assume 4 byte pointers.

In 64-bit mode such dereferences automatically return 8-byte values (e.g. pointers). 
Just put  -DDECARBONATE -m64  in 'More compiler options'.

Robert P.