DesktopWidth() and VMWare

Everything else that doesn't fall into one of the other PB categories.
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

DesktopWidth() and VMWare

Post by es_91 »

Hi.

Many of you people may know VMware, ̶t̶̶h̶̶e̶̶ ̶̶f̶̶r̶̶e̶̶e̶̶ ̶̶m̶̶i̶̶c̶̶r̶̶o̶̶s̶̶o̶̶f̶̶t̶̶ ̶̶v̶̶i̶̶r̶̶t̶̶u̶̶a̶̶l̶̶ ̶̶p̶̶c̶̶ ̶̶m̶̶a̶̶c̶̶h̶̶i̶̶n̶̶e̶, that allows you to play an OS like a program inside your native OS.

Inside my VMware, DesktopWidth() returns false values. My Screen resolution is 1280x800, the VMware has a size of 1280x704 (maximized) but inside the VMware, installed PureBasic's function DesktopWidth(#Null) returns 1085. DesktopHeight(#Null) returns 737!

Help? :)
Last edited by es_91 on Wed Oct 15, 2014 12:15 pm, edited 1 time in total.
:mrgreen:
Alex777
User
User
Posts: 49
Joined: Sun Nov 16, 2008 12:47 am
Location: Cayman Is.
Contact:

Re: DesktopWidth() and VMWare

Post by Alex777 »

I use VMware Player from VMware, Inc. and I find that DesktopWidth() & DesktopHeight() return correct values from inside the emulator.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: DesktopWidth() and VMWare

Post by Danilo »

VMware and Windows Virtual PC (Download) are different products by different companies.
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: DesktopWidth() and VMWare

Post by es_91 »

~~~ overhauled by the next post ~~~
Last edited by es_91 on Fri Oct 17, 2014 12:29 pm, edited 1 time in total.
:mrgreen:
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: DesktopWidth() and VMWare

Post by es_91 »

Danilo wrote:VMware and Windows Virtual PC (Download) are different products by different companies.
And i meant VMWare, by VMware Inc., not the Microsoft product. Sorry.
:mrgreen:
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: DesktopWidth() and VMWare

Post by ts-soft »

It makes no difference, virtual machine or not, the values of desktopwidth always accurat.
Only, there is a error in desktopmanager, but for windows, this is impossible.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: DesktopWidth() and VMWare

Post by es_91 »

I'm not lying. :!: Tomorrow I'll send you a screenshot from work.
:mrgreen:
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: DesktopWidth() and VMWare

Post by es_91 »

Here's the screen:

Image
:mrgreen:
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: DesktopWidth() and VMWare

Post by ts-soft »

And this values not correct? You have to compare this values, with the setting in "Systemsteuerung".
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: DesktopWidth() and VMWare

Post by blueznl »

Seems to me to be right. Check screen settings inside the VM and see what that lists. I've been using VM's on VirtualBox and VMWare for quite some time, and though I've seen other issues (related to VM'ing in general) I've not seen what you're describing here.

I fear the problem might be between the keyboard and the chair 8)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: DesktopWidth() and VMWare

Post by Thunder93 »

LOL! :lol:
blueznl wrote:I fear the problem might be between the keyboard and the chair 8)
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: DesktopWidth() and VMWare

Post by es_91 »

OMG. Is it too hard to check an image's resolution/size? :wink:
ts-soft wrote:And this values not correct?
No.
blueznl wrote:Check screen settings inside the VM and see what that lists.
Didn't I say that before?
es_91 wrote: the VMware has a size of 1280x704
Image
blueznl wrote:I fear the problem might be between the keyboard and the chair 8)
I fear the Problem in this case is be between YOUR Keyboard and YOUR chair.

/e: BTW the values are ALWAYS 1085x737.
:mrgreen:
User avatar
Kiffi
Addict
Addict
Posts: 1509
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: DesktopWidth() and VMWare

Post by Kiffi »

cannot confirm:

Image

Greetings ... Peter
Hygge
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: DesktopWidth() and VMWare

Post by PB »

> Inside my VMware, DesktopWidth() returns false values

If it works on a real PC, then it's a bug with VMware and not PureBasic.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply