|
-
April 9th, 1999, 09:40 AM
#1
RPC and ActiveX Control
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.
-
April 9th, 1999, 10:09 AM
#2
Re: RPC and ActiveX Control
Have You AfxEnableControlContainer in your CDialog class? Does the dialog work itself, without RPC?
-
April 9th, 1999, 10:34 AM
#3
Re: RPC and ActiveX Control
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|