Page 1 of 1

Sreen resolution

Posted: Tue Apr 30, 2013 7:06 am
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

Re: Sreen resolution

Posted: Tue Apr 30, 2013 8:05 am
by rdonnay
This makes no sense.

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

Are you compiling and linking in GUI mode?

Re: Sreen resolution

Posted: Tue Apr 30, 2013 9:31 am
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