Pelles C forum

C language => Expert questions => Topic started by: Christian on December 16, 2007, 06:58:49 PM

Title: Different results on two different machines
Post by: Christian on December 16, 2007, 06:58:49 PM
Hello @ all.

I have the following problem:

I use a small code snippet to center a dialog within the parent window. (Within the zip in cbm_misc.zip) But this function works on a Intel Core2Duo 7200 Notebook (Dell Inspiron 6400), but it centers to the screen instead of the parent window on a AMD Athlon 64X2 6000.

Both working with Windows XP Pro SP2, all patches and the same PellesC.

Can someone understand this error?

Greetings from Berlin,

Christian
Title: Re: Different results on two different machines
Post by: Pelle on December 20, 2007, 10:24:28 AM
I dont see anything obvious in the code, and it works here. Maybe check the return value from each call, to see if the call is failing or producing a "strange" value, and then trace from there...
Title: Re: Different results on two different machines
Post by: TimoVJL on December 20, 2007, 12:13:25 PM
How this example works in those machines ?
Title: Re: Different results on two different machines
Post by: Christian on December 20, 2007, 02:20:48 PM
Thanks to both of you!

While I was testing your app, timovjl, I found the answer:

This godd***** ATI Hydravision was active and the dialogs jumped where Hydravision wanted, not where I wanted.

So, for everyone with the same problem: Don't use Hydravision.