Board index » delphi » Changing Screen Resolution

Changing Screen Resolution

Greetings..  I've been trying to find a way to change the screen mode in
Delphi 2.0.  Win32 api has enumdisplaysettings and changedisplaysettings
calls, but I can't get them to work.  Enum always returns false.  I'm
using a Null PChar as the devicename as the winapi instructs.  Anyone
had any luck with this?

Thanks,
Steve

 

Re:Changing Screen Resolution


Quote
Steve Barber <run...@multipro.com> wrote:
>Greetings..  I've been trying to find a way to change the screen mode in
>Delphi 2.0.  Win32 api has enumdisplaysettings and changedisplaysettings
>calls, but I can't get them to work.  Enum always returns false.  I'm
>using a Null PChar as the devicename as the winapi instructs.  Anyone
>had any luck with this?

Not myself, but reading around brings me to this conclusion:
  - QuickRes mode changer for Win95 uses ChangeDisplaySettings
    *plus* several dirty low-level hacks that are neither
    documented nor guaranteed to be stable on all machines.
  - There is no difference between Win95 gold and Win95B
    in this respect
  - NT4 ChangeDisplaySettings apparently works better

The stuff I was reading about related mainly to colour
depth changing.  If all you want to do is to change the
screen resolution then you might have better luck.
Otherwise I don't like your prospects.

Most of the gurus in this area are working with C++.
You might try a thorough search using www.dejanews.com

HTH.
__________________________________________________________________
Grant Walker        Hobart, Tasmania         Ph: +613 62313083
Design Engineer     Australia                Fx: +613 62313086

Other Threads