Re: commit (head): win32 print work

From: Dom Lachowicz <domlachowicz_at_yahoo.com>
Date: Wed Nov 10 2004 - 14:31:33 CET

Hi guys,

There's a word of warning here. The safest thing is to
probably use GetProcAddress(), otherwise things won't
work on Win9x or NT4, which would be a *big* change
just a few days before the release. Per Larsson dug
this up.

http://www.codeguru.com/Cpp/W-P/printing/comments.php/c2951/?thread=38786

Thanks,
Dom

--- Tomas Frydrych <tomasfrydrych@yahoo.co.uk> wrote:

>
>
> 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
> > > > >
> > > >
> > >
> >
>
>
>

                
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
 
Received on Wed Nov 10 14:32:40 2004

This archive was generated by hypermail 2.1.8 : Wed Nov 10 2004 - 14:32:40 CET