It cannot be #ifdef-ed, we do not build separate binaries for 
different win32 flavours. And it _does_ build on win2k/VC6, but your 
include files, etc., have to be uptodate to include winXP specific 
API -- you need to get an uptodate Windows SDK.
Tomas
> the call should be IFDEF-ed. And It doesn't build on Win2k/VC6 as well.
> 
> Sorry for my mail mess
> Marc
> 
> > marc
> > 
> > On Wed, 2004-11-10 at 01:22 +0100, J.M. Maurer wrote:
> > > GetDefaultPrinter seems to be unsupported on Win95/98/ME
> > > 
> > > http://msdn.microsoft.com/library/default.asp?url=/library/en-
> > > us/gdi/prntspol_0hma.asp
> > > 
> > > If so,
> > > 
> > > A) this should be worked around
> > > B) the patch should be reverted.....
> > > 
> > > Any idea's ?
> > > 
> > > Marc
> > > 
> > > 
> > > On Tue, 2004-11-09 at 21:23 +0000, Tomas Frydrych wrote:
> > > > 
> > > > This is the remainder of making the USP graphics use printer rather 
> > > > than screen font metrics for layout; it works like this: on startup 
> > > > we retrieve metrics for default printer and use it to do layout; when 
> > > > the user choses specific printer to print with, we redo the layout on 
> > > > screen with new metrics. Because font metrics on two different 
> > > > printers tend to be more similar than that those for printer and 
> > > > screen, the layout changes when the printer changes are typically 
> > > > quite small. Most importantly, the printout matches the screen.
> > > > 
> > > > For now, it only works for the USP graphic; I have no immediate plans 
> > > > to fix the base win32 graphics class which is badly non-WYSIWYG.
> > > > 
> > > > Outstanding: need to modify the print dialogue to allow choosing 
> > > > printer without printing.
> > > > 
> > > > files: gr_Win32Graphics.h/cpp, gr_Win32USPGraphics.h/cpp, 
> > > > xap_Win32Dlg_Print.cpp, ut_Win32OS.h/cpp
> > > > 
> > > > Tomas
> > > > 
> > > 
> > 
> 
Received on Wed Nov 10 11:24:51 2004
This archive was generated by hypermail 2.1.8 : Wed Nov 10 2004 - 11:24:51 CET