Click to See Complete Forum and Search --> : RPC and ActiveX Control


Limbl
April 9th, 1999, 09:40 AM
I have developed an RPC server which provides an RPC function that displays a dialog box. This dialog box contains an Active X
control. When an RPC client calls my RPC function, this dialog box refuses to appear. I ran several debugging sessions and I am
quite certain that the reason why my dialog box could not appear has something to do with the Active X control. In fact, the dialog
box could not even reach its OnInitDialog() function.

Has anyone ever come across this problem ? Would appreciate it very much if someone can help. Thanks very much.

Dmitriy
April 9th, 1999, 10:09 AM
Have You AfxEnableControlContainer in your CDialog class? Does the dialog work itself, without RPC?

Limbl
April 9th, 1999, 10:34 AM
Hello Dmitriy,

Yes, AfxEnableControlContainer() is included in the InitInstance() of my RPC application. Note that the dialog box (that contains the
Active X control) is supplied in a DLL. This DLL also calls AfxEnableControlContainer in its InitInstance().

My RPC server is linked to this DLL and launches the dialog box via an exported function. The dialog box does run successfully
when called by any other client application.

Thankyou for replying.