473,503 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A97 runtime app behaves differently on 2 win XP boxes...

MLH
Today, I installed an A97 runtime app I built in a hurry this morning.
I took it to a customer who had 3 machines, all running windows
XP. On one machine, an activeX calendar control would NOT
display. OK, so maybe it needed to be registered first. But on that
same machine, I kept getting "Automation errors" citing that some
expression may not result in the name of a macro, user-defined FN,
or [event procedure] - why?

On the second machine, the same app, its procedures and expressions
ran w/o incident. The errors appeared to be untrapped - at least I
didn't recognize any of my error-handling procedures at work whilst
being bombarded with errors. What are automation errors anyway?

The errors are occurring in pretty blahzee routines too - things like
MouseDown events that look like this...

Private Sub MotorNum_MouseDown(Button As Integer, Shift As Integer, X
As Single, Y As Single)
On Error GoTo ErrorMotorNum_MouseDown
Dim ThisForm As String
ThisForm = Me.Name

Dim Help As String, MyControl As Control
Set MyControl = Screen.ActiveControl
Help = MyControl.Tag
If Shift = 0 Then
If Button = RIGHT_BUTTON Then MsgBox Help, 64, MyApp$ & ",
rev. " & MY_VERSION$
Else
If Button = RIGHT_BUTTON Then
Select Case Shift
Case SHIFT_MASK
MsgBox "You pressed SHIFT & Rite Mouse Button!"
Case CTRL_MASK
'MsgBox "You pressed CTRL & Rite Mouse Button!"
Dim PlayHelp As Variant
PlayHelp =
fPlayStuff("C:\TowPack\help\Help0000.wav", 0)
Case ALT_MASK
MsgBox "You pressed ALT & Rite Mouse Button!"
End Select
End If
End If

ExitMotorNum_MouseDown:
Exit Sub

ErrorMotorNum_MouseDown:
Dim r As String, k As String, Message3 As String
r = "The following unexpected error occurred in Sub
MotorNum_MouseDown, CBF on " & ThisForm & "."
k = CRLF & CRLF & Str$(Err) & ": " & Quote & Error$ & Quote
Message3 = r & k
MsgBox Message3, 48, "Unexpected Error - " & MyApp$ & ", rev. " &
MY_VERSION$
Resume ExitMotorNum_MouseDown

End Sub

And OnGotFocus and OnLostFocus expressions that look like these...

=Change2Green("Forms![frmCustEntryfrmVehicleEntryForm]![MotorNum]
OnGotFocus event procedure")
=Change2Gray("Forms![frmVehicleEntryForm]![MotorNum] OnLostFocus event
procedure")

And OnClick event procedures like this...

Private Sub StartTime_Click()
Me!StartTime = GetTheTime()

End Sub
The real heck of it is, the app will work on one XP box but not
another? That confuses me. I tested it on a box running WIN98
and have similar error. I can understand that maybe there are
some significant differences between XP and WIN98. I cannot
understand the OS differences being that significant between
one installation of XP and another - I did notice that the machine
exhibiting the problem was running the SP2 patch. I did NOT
notice whether the machine that worked had the patch or not.
I assume that it did. It was a low-tech office environment and
I imagine that the ladies operating the equipment clicked 'YES'
to everything that was ever presented to them.

This is a real problem for me, and I don't have a clue where to
start debugging.
Nov 13 '05 #1
3 1124
MLH
Well, I'm certainly not a guru, but I know if something's
fixed or broke. I just ran the following DOS command
in a COMMAND prompt on a WIN98 machine after
making sure MSCAL.OCX was in the \windoze\system32
directory...

regsvr32.exe \windows\system\mscal.ocx

Now my automation errors seem to have disappeared?
The code/expressions/etc on the tabbable/clickable
controls running OnClick, OnGotFocus, OnLostFocus,
etc seems to be running fine. And, of course, the
calendar displays and works fine.

Still, do I have a clue you ask? No way, Jose. Anyone
else know what was going on and why registering the
OCX control fixed the other (seemingly unrelated) probs?
Nov 13 '05 #2
On Thu, 16 Jun 2005 22:33:08 -0400, MLH <CR**@NorthState.net> wrote:
Well, I'm certainly not a guru, but I know if something's
fixed or broke. I just ran the following DOS command
in a COMMAND prompt on a WIN98 machine after
making sure MSCAL.OCX was in the \windoze\system32
directory...

regsvr32.exe \windows\system\mscal.ocx

Now my automation errors seem to have disappeared?
The code/expressions/etc on the tabbable/clickable
controls running OnClick, OnGotFocus, OnLostFocus,
etc seems to be running fine. And, of course, the
calendar displays and works fine.

Still, do I have a clue you ask? No way, Jose. Anyone
else know what was going on and why registering the
OCX control fixed the other (seemingly unrelated) probs?


No, but I've seen it before several times.

It appears that once in a blue moon, an install script somehow fails to
register a control on some particular machine even though it does so just fine
on others. The fix is just what you discovered - to manually register the
library. Niether Installshield nor Wise Installer is immune to this problem,
FWICS.
Nov 13 '05 #3
MLH
Bummer.
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4076
by: Scott Matthews | last post by:
I've recently come upon an odd Javascript (and/or browser) behavior, and after hunting around the Web I still can't seem to find an answer. Specifically, I have noticed that the Javascript...
3
1950
by: Faith | last post by:
Hi all, I have a serious problem that I am not sure whether its a bug in the Microsoft Visual C++ or something that I am doing wrong. The problem is (as noted in the Subject) is that my program...
3
2448
by: Rameshika | last post by:
Hi All How can I select a particular row in a datagrid.Where when the user double clicks the data in that row should appear in the corresponding text boxes in runtime And how can the user...
1
1216
by: Do | last post by:
Hi, Has anyone every had two NET Framework 1.1 Servers that both run the same web application, but the behavior of the forms is different? My form validation behaves differently on two...
15
2426
by: Joe Weinstein | last post by:
Hi. Below is a simple JDBC program to insert and extract a numerical value. When ResultSet.getDouble() is called, the same program produces different output on solaris than it does on Linux. I...
1
1551
by: rchen8080 | last post by:
I found that the php script behaves differently when it run in command line rather than runing over web server. Program includes the code like <?php function send_email($from_address,...
6
6722
by: JML | last post by:
Hi, I have some code which parses a text file and creates objects based on what is in the text file. The code works just fine on Windows, but when I compile it using XCode on OS X the parsing...
17
2647
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/this-alert.html http://www.frostjedi.com/terra/scripts/demo/this-alert2.html Why, when you click in the black box, do the alert boxes say different...
0
1016
by: souvickm | last post by:
I have developed an exe to cut image files from a dumped folder and paste them in some other folder(categorized into subfolders) on a different machine. I have also coded to generate a text file at...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
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,...
0
7332
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...
1
6991
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...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1512
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 ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
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...

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.