Problem:
Description: OLESUP method "adviseEvents" gets error 243 - class could not be loaded
The class olesup cannot load the event handling class because the case of the event handling class name does not match the case of the class name in the program using olesup.
When using the olesup "adviseEvents" method to register an event handler, keep in mind
that the class names default to lower case. In this case, you should specify the class
name literal in CLASS-CONTROL as lower case in the program where you invoke the
"adviseEVents" method of the olesup class:
CLASS-CONTROL.
MYEVENTCLASS IS CLASS "eventhandlerclass".
If you specify the class name in upper case ("EVENTHANDLERCLASS"), then make sure that
you add an entry in CLASS-CONTROL in the event handling class such as:
CLASS-ID. EVENTHANDLERCLASS, INHERITS FROM OLEBASE-E.
CLASS-CONTROL.
OLEBASE-E IS CLASS "olebase-e"
MYEVENTCLASS IS CLASS "EVENTHANDLERCLASS".
Resolution:
Description: OLESUP method "adviseEvents" gets error 243 - class could not be loaded
The class olesup cannot load the event handling class because the case of the event handling class name does not match the case of the class name in the program using olesup.
When using the olesup "adviseEvents" method to register an event handler, keep in mind
that the class names default to lower case. In this case, you should specify the class
name literal in CLASS-CONTROL as lower case in the program where you invoke the
"adviseEVents" method of the olesup class:
CLASS-CONTROL.
MYEVENTCLASS IS CLASS "eventhandlerclass".
If you specify the class name in upper case ("EVENTHANDLERCLASS"), then make sure that
you add an entry in CLASS-CONTROL in the event handling class such as:
CLASS-ID. EVENTHANDLERCLASS, INHERITS FROM OLEBASE-E.
CLASS-CONTROL.
OLEBASE-E IS CLASS "olebase-e"
MYEVENTCLASS IS CLASS "EVENTHANDLERCLASS".