473,563 Members | 2,895 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB6 code runs under XP, but not under Win98

2 New Member
I have a VB6 project that runs OK under XP, but not under Win98. I have not packaged and deployed. I just copied my working folder of code from the XP machine to the Win98 machine. The code on the Win98 machine runs about 95% successful. The problem is this: I have a timer that, when it goes off, decrements a variable. The variable is used in my mainform, in a loop. I set breakpoints in the timer code and have verified that the variable is indeed being decremented. However, when I set breakpoints in the loop, the variable remains at its original value when run on the Win98 machine. The varialble is declared as Public. On XP, the variable shows the decremented value in the loop just fine. I'm beginning to think that there is a bigger problem here, but I'm not sure where to start. No errors are generated. Thanks in advance!
Apr 9 '10 #1
2 1429
vb5prgrmr
305 Recognized Expert Contributor
Put Option Explcit at the top of all code windows, change option to break on unhandled errors, remove all on error resume next statements and replace them with proper error handling routines.



Good Luck
Apr 9 '10 #2
gtfrueh
2 New Member
Thanks - I'll try it!
Apr 9 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1258
by: Andrew Peabody | last post by:
Hello, I have a piece of code which is trying to enumerate the COM ports in C#. It works fine on my XP development computer but causes a security exception on Win98. The offending line is IntPtr hDevInfoSet=Win32.SetupDiGetClassDevs(ref Win32.GUID_DEVCLASS_PORT, IntPtr.Zero, IntPtr.Zero, Win32.DIGCF_PRESENT);
2
1811
by: jon morgan | last post by:
Hi, I need to debug my app. under Windows 98. Although VS.net can't be installed it I have been able to install both Framework 1.1 and the SDK. Can I debug the app. in VS.net remotely from an XPSP2 system over a peer to peer network ? Although both machines can see each other fine, DCOM seems to jump in when I try to connect to the...
6
2285
by: Andrzej | last post by:
Used to read newsgroup for answers, now have to ask for them as well. I have an application (C#, .NET 1.1) that connects to local db on MSDE 2000 SP3a (using ADO from MDAC 2.71) on one side and to a web service on the other (not relevant I guess). Some stored procedures consume xml produced by DataSet objects (values as elements) using...
0
1593
by: Macadair | last post by:
I develop mid-range multi-user applications for a large site. Currently Win98 and Office97 are the standards used however we are slowly moving to WinXP. Due to the site upgrade cost, we are staying with Office97 for a little longer. This means we will have Win98 and WinXP PC's running Access97. When I compile an Access97 application...
8
2586
by: mheden | last post by:
Hello all, I'm using an Access 97 front-end with a SQL Server 2000 back-end. One particular bit of code runs a stored procedure to obtain a rowcount from one of the back-end tables. This works fine on one PC, but not on another. For the life of me, I can't see why it fails to work in the 'faulty' environment. This is the code:-
15
4446
by: Jim | last post by:
I am extremely frustrated. I am building c# application for a call center and am using a third party API to access some hardware. When develop and test my class using the windows console the application runs flawlessly, but once I call the class from inside a c# windows application the program freezes, crashes etc... there must be a way...
2
1637
by: Scott | last post by:
I have an application written in C# using VS 2003 with MSDE as the database. The reports use Crystal as provided with VS. The application and reports work correctly under WinXP, but the reports do not work under Win98. I have read the info re dbghelp.dll and CRQE.dll under Win98 ad have implemented the recommendations. This avoids the...
4
1721
by: Wasi Rehman | last post by:
hi friends, I have one webservice which i want to run on win98 system because some reference in that webservice only run in win98, and my ASP.net application is on win2000 pro. I want to call that webservice from my ASP.net application how could i do that........ how can i publish my webservice on win98 , is it possible or not if not then what...
7
2160
by: Maravilloso | last post by:
Hi I'm trying to automatically send a postscript file to be printed to the default printer in a Win98 PC, by means of using the instrucction: win32api.ShellExecute (0, "print", "file.ps", None, ".", 0) but it raises an exception with the message: error: (31, 'ShellExecute', 'A device attached to the system is not
2
1347
by: billsahiker | last post by:
I have read in this group that the .net 2 framework redistributable package can be installed on win98 and it includes a vb.net command line compiler. IF this is so, what sort of debugging, if any, is available with the command line compiler? Second question, is it possible to install the msdn library for .net framework 2.0 on a win98...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.