Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2005, 07:46 AM
Registered User
 
Join Date: Dec 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems after upgrading to Windows 2000

Hi All..

I really hope someone can shed some light on this.

I have a VB6 application with alot of timer control functions, interfacing with barcode scanners printers and card readers.

It was running perfectly fine, until recently when I upgraded my OS from Win 98SE to Win 2000. Somehow, the application went abit berzerk. It could still run, read/write data, access database etc, but it somehow ignores all the timing controls, and goes by very very fast.

So far I have not changed anything to my code yet, cos I figured, something must be missing from the Win2000 system files. or some of the OCX files may be corrupted or sthg.

I hope someone can give me some suggestions on how to solve this problem. Thanks in advance.

cheers
morphy
 
Old March 10th, 2005, 05:38 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what do you mean with "timing controls"?
Marco
 
Old March 10th, 2005, 08:15 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I suspect that your “timing controls” rely on Loops with a certain number of iterations, whose duration was discovered through trial and error.

This was done a lot when computers were just becoming available, back in the late 1980s and the early 1990s, but it is a really fragile undertaking (as you have discovered).

You should switch to using code that relies explicitly on elapsed time periods, rather than on iterative loops.

Look into the Timer statement, and using StopWatch ActiveX controls.

There are also some API functions that allow you to obtain better resolution than Timer does.

If I have misunderstood what you are working with, please forgive me, and just ignore this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading ASP w/ SQLserver 2000 to ASP.NET w/2005 cJeffreywang ASP.NET 2.0 Basics 1 April 5th, 2007 11:30 PM
Access 2000 "Windows in Taskbar" cjdphlx Access VBA 4 April 3rd, 2007 11:38 AM
Upgrading SQL 2000 to SQL 2005 gvcooper SQL Server 2005 1 May 9th, 2006 03:24 PM
Windows 2000 and SQL 2000 in Korean Language mipo SQL Server 2000 0 February 19th, 2004 12:50 PM
log4j with jwsdp1.2 in windows 2000 peterml JSP Basics 0 August 23rd, 2003 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.