
Illegal operation error with VB OCX in dialog
I'm having a problem with trying to drop an ActiveX control created in VB
onto a dialog in VC++ 6.0 (an
MFC dialog-based EXE).
The compiler issues an "illegal operation error", then abnormally
terminates, after showing the splash screen for the control.
I am the author of the control, and it works fine on my development machines
(Win 98 and Win NT Workstation 4.0) in VC++ 5.0 and 6.0. However, my
potential client reports that it fails as above on a clean Win 98A machine
(presumably with VC++ installed, of course), in VC++ 6.0. It also fails for
him on Win 95B. The client is able to successfully use the control on a
Visual Basic 5.0 form. Also, the client reports success using the control
under NT 2000 (preview).
I've done much searching through Deja.com on this issue, to no avail. Here
are some more details: the ActiveX control has a reference to an ActiveX
DLL. Both show a splash screen in their Sub Main. Only the OCX's splash
screen shows up, however, before the compiler crashes.
The setup program for the control installs the required dependencies (it was
created with the latest version of InstallShield Express): the VB runtime,
etc. Also my potential client tried a different version of the OCX which
has only the dependency on the VB runtime, with exactly the same results.
Without a clean Win 98 machine it's difficult for me to diagnose this
problem. What could be missing from his machine that's present on both of
my machines? (i.e., Why is it working for me in VC++ 5.0 and 6.0 but not
for him?)
Any help would be greatly appreciated.
Daniel Ansari