Re: RES: [VBCOM] XP

Alex Bailey <[email protected]> Fri, 28 Jun 2002 11:43:30 +0100
Newsgroups gmane.comp.windows.devel.vbcom
Message-ID <003401c21e90$a499c520$8c01a8c0@BANANA>
Windows XP comes with a new version of the msvbvm60.dll runtime library.
In this version the ROUND function does "banking rounding". That is it
rounds up for odd numbered mantissas and rounds down for even numbered
ones (eg 1.5 becomes 2 and 2.5 becomes 2.0 also). The idea is that this
is fairer when calculating interest on customer's balances. Personally I
think this is pretty stupid as there are now plenty of applications out
there that are having problems because of this change. They should have
just introduced a function like "BANKROUND(  )" or something.


Regards,

Alex Bailey
Interfacia Ltd.




-----Original Message-----
From: Technical discussion of VBCOM [mailto:[email protected]]
On Behalf Of Yves Hanoulle @ ObjectSoft
Sent: 09 June 2002 15:05
To: [email protected]
Subject: Re: [VBCOM] RES: [VBCOM] XP


Hello,

I think that this problem has more to do with the VB Run time. (Are you
sure that the same version (service pack etc...)is installed on both
machines?
The flexgrid problem seems related to a DAO/ADO problem or so.
Greetings,
Yves Hanoulle, IT-Guide, MCSD

-----Original Message-----
From: Technical discussion of VBCOM [mailto:[email protected]]
On Behalf Of Ronaldo Nogueira
Sent: Friday, June 07, 2002 3:55 PM
To: [email protected]
Subject: [VBCOM] RES: [VBCOM] XP


Arnaldo,

I've faced to problemas: the first is that the vsflexgrid light doesn't
work on XP. I had to change to vsflexgrid oledb. The second problem is
regarding the behavior of the format function. If you execute the
following command in the immediate window, you will get diferent results
on W98 and WXP:

Windows 98/ME/2000/NT
FOR I = 0 TO 9: ? I + .5, ROUND(I+.5,0), FORMAT(I+.5,"##"): NEXT
 0,5           0            1
 1,5           2            2
 2,5           2            3
 3,5           4            4
 4,5           4            5
 5,5           6            6
 6,5           6            7
 7,5           8            8
 8,5           8            9
 9,5           10           10

Windows XP
FOR I = 0 TO 9: ? I + .5, ROUND(I+.5,0), FORMAT(I+.5,"##"): NEXT
 0,5           0            0
 1,5           2            2
 2,5           2            2
 3,5           4            4
 4,5           4            4
 5,5           6            6
 6,5           6            6
 7,5           8            8
 8,5           8            8
 9,5           10           10

Even more strange is that the ROUND function in SQL Server behaves
(correctly in my opinion) in the same way the format function in Windows
98 does, and they opted to change the behavior of format function
instead of round function in VB.

Regards,

Ronaldo


-----Mensagem original-----
De: Technical discussion of VBCOM [mailto:[email protected]]Em
nome de Arnaldo Fuziy
Enviada em: sexta-feira, 7 de junho de 2002 10:30
Para: [email protected]
Assunto: [VBCOM] XP


Hello,

We have a VB6 application, running in a 3-tier environment, with VB6
components, running under W2K and a database server SQL2K.
What's bothering us is that 'till now, our environment used to be 90%
W98 and 10% W2K Professional. But we've recently purchased a notebook
running WXP and couldn't find anything about VB6 and WXP compatibility
advising that it was or compatible nor incompatible. So, we were
wondering if anyone in the list would be so kind to help us finding some
answers about this. Any help would be appreciated.

Plus, I have a personal doubt. Have been reading few things about the
W2K readiness Kit but didn't find anything also about the features that
are included in it and if it is necessary to run the VB6 apps and why...

Thanks in advance,

Arnaldo Tomita Fuziy
Analista de Sistemas - Dumont Saab do Brasil S/A
*  <mailto:[email protected]> [email protected]
*  <http://www.dumont.com.br/> http://www.dumont.com.br
* (11) 3068-3510 * (11) 3068-3572