Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2005 Feb : Delphi 7 and DeviceCapabilities call?

www.cryer.info
Managed Newsgroup Archive

Delphi 7 and DeviceCapabilities call?

Subject:Delphi 7 and DeviceCapabilities call?
Posted by:"Warren O. Merrill" (w..@inel.gov)
Date:Mon, 14 Feb 2005 12:43:57

I'm using Delphi 7 and just hit a problem.  I was converting code from
another language (Module-2) over to Delphi.  I converted the API call
Windows.DeviceCapabilities over.  Under Windows XP Pro the app that uses
this call runs (I don't know about this call itself but at least the app
runs).  Under Windows XP Home when I try to start the app it gives me (as
close as I can remember) "The routine DeviceCapabilities could not be found
in the gdi32 dll file".  Up to that point it compiles and links fine but
gives me the error when I try to run.

Any clues what might be happening?

Also I'm using the DeviceCapabilities call to determine on the printer what
paper types the printer supports so that when the user requests different
printing such as to an index card size (they can set custom sizes) it
compares the requested print size against the papers supported to determine
if it should set one of those or just set a custom size.  If there is some
problem using that call on XP Home do I have any alternatives for how to do
this?

Thanks for any tips....

Replies:

www.cryer.info
Managed Newsgroup Archive