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_MouseD own(Button As Integer, Shift As Integer, X
As Single, Y As Single)
On Error GoTo ErrorMotorNum_M ouseDown
Dim ThisForm As String
ThisForm = Me.Name
Dim Help As String, MyControl As Control
Set MyControl = Screen.ActiveCo ntrol
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\He lp0000.wav", 0)
Case ALT_MASK
MsgBox "You pressed ALT & Rite Mouse Button!"
End Select
End If
End If
ExitMotorNum_Mo useDown:
Exit Sub
ErrorMotorNum_M ouseDown:
Dim r As String, k As String, Message3 As String
r = "The following unexpected error occurred in Sub
MotorNum_MouseD own, 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_Mo useDown
End Sub
And OnGotFocus and OnLostFocus expressions that look like these...
=Change2Green(" Forms![frmCustEntryfrm VehicleEntryFor m]![MotorNum]
OnGotFocus event procedure")
=Change2Gray("F orms![frmVehicleEntry Form]![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. 3 1127
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\system 32
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?
On Thu, 16 Jun 2005 22:33:08 -0400, MLH <CR**@NorthStat e.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\system 32 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 encode() function
behaves differently if a codepage has been set.
For example:
<script>
document.write(escape('Ôèëìè'));
(note: that should be five accented characters)
|
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 behaves differently
when I insert a break point in a certain function (or I step into it)
I get different results. Its the same input and the same code!!
I do not think that adding a source code here will help since its
fairly a long program, but I...
|
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 insert,delete and edit fields in a datagrid at runtime
Please be kind enough to help me
Thanks
Rameshika
|
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 servers, and they have the
exact same
version of my ASP.net web form.
Anyone?
|
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 would be grateful for any
discussion of this!
thanks,
Joe Weinstein at BEA Systems
Results on Linux Box
-----------------------------------------------------------------------
| |
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, $to_address, $bcc_address,
$subject, $msg, $attachments,$reminder_id) {
$headers = ...;
|
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 goes all wrong. Is there
some known differences with file handling on OS X?
My code is quite long, but one of the defect parts looks like this
(sorry about the indentation - I'm new to posting code on a newsgroup):
|
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
things? Shouldn't they say the same thing?
|
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 the end of the operation to provide a kind of report. The exe also reports the error no. & procedure name through the same text file (when it encounters any error/exception)
Now, the exe performs all the reqd tasks properly when run but when I try to...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |