Illegal operation error with VB OCX in dialog 
Author Message
 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



Sun, 09 Jun 2002 03:00:00 GMT  
 Illegal operation error with VB OCX in dialog
I have had a problem where the pkg/deploy wiz did not catch all the
dependencies.  I was using FileSystemObject which required a SCRRUN.DLL to
be manually added when I ran the wiz.  I don't know if you use this object
but I am sure there are others that slip by the wiz.

Quote:

>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



Sun, 09 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Illegal operation error with VB OCX in dialog

2. Illegal Operation Errors(Crystl32.ocx and dbgrid.ocx)

3. Illegal operation (crystl32.ocx and dbgrid32.ocx) when exiting program

4. Illegal Operation crystl32.ocx and dbgrid32.ocx

5. Illegal operation error in SQL Server with VB component under MTS

6. Cancel button gets Illegal operation error--Word 97

7. Error handling and Illegal Operation

8. Error 656 Operation illegal on linked parameter

9. Error : pvbload.exe performed illegal operation!!

10. IE illegal operation after installation of Vb Package

11. Illegal operation when Installing VB 5.0

12. ADO Illegal operation in VB

 

 
Powered by phpBB® Forum Software