Sreen resolution

This forum is for eXpress++ general support.
Post Reply
Message
Author
D. Schuster
Posts: 38
Joined: Mon Feb 15, 2010 4:01 am

Sreen resolution

#1 Post by D. Schuster »

I have a problem to read the data of screen resolution.
With the command

nWidth := AppDeskTop():currentSize()[1]

an error is displayed:

oError:args :
-> VALTYPE: U VALUE: NIL
oError:canDefault : N
oError:canRetry : N
oError:canSubstitute: J
oError:cargo : NIL
oError:description : Parameter hat falschen Typ
oError:filename :
oError:genCode : 2
oError:operation : currentSize
oError:osCode : 0
oError:severity : 2
oError:subCode : 1025
oError:subSystem : BASE
oError:thread : 1
oError:tries : 0

Include files are std / xbp / appevent.ch are foreseen.
Has anyone an idea what I have missed?
Thanks in advance
Dieter

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Sreen resolution

#2 Post by rdonnay »

This makes no sense.

It appears that AppDeskTop() is not returned an XbpIWindow() object.

Are you compiling and linking in GUI mode?
The eXpress train is coming - and it has more cars.

D. Schuster
Posts: 38
Joined: Mon Feb 15, 2010 4:01 am

Re: Sreen resolution

#3 Post by D. Schuster »

Hello Roger,
many thanks for your hint. The definitions in the XPJ-file were
GUI=yes
LINK_FLAGS= /PM:PM
but that was not enough.
Following your hint I added at
COMPILE_FLAGS= ../dEXPRESS19 !
And that worked.
Thank You

Dieter

Post Reply