I have a client application named MyClientApp that contains a class module named MyClass. MyClass contains a callback method named MyCallback. On the corporate network, there is a COM component named MyServerCOM that contains a method named CallMyCallback.
MyServerCOM contains a method named MyInitializer. After Myintializer has been called by MyClientApp, CallMyCallback will be called Myinitializer. CallMyCallback will call the MyCallback method of MyClientApp that is running on the client computer.
To call Myinitializer in MyServerCOM, MyClientApp creates an object variable for MyServerCOM named oServerCOM. I want to add the procedure in MyClientApp application that calls MyServerCOM.Myinitializer. Should the code be as follows:
Public oMyClass As MyClass
Set oMyClass = New MyClass
oServerCOM.Myinitializer (oMyClass)
Or is that wrong?
MyServerCOM contains a method named MyInitializer. After Myintializer has been called by MyClientApp, CallMyCallback will be called Myinitializer. CallMyCallback will call the MyCallback method of MyClientApp that is running on the client computer.
To call Myinitializer in MyServerCOM, MyClientApp creates an object variable for MyServerCOM named oServerCOM. I want to add the procedure in MyClientApp application that calls MyServerCOM.Myinitializer. Should the code be as follows:
Public oMyClass As MyClass
Set oMyClass = New MyClass
oServerCOM.Myinitializer (oMyClass)
Or is that wrong?