CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    2

    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.



  2. #2
    Join Date
    Apr 1999
    Location
    Toronto, ON
    Posts
    713

    Re: RPC and ActiveX Control

    Have You AfxEnableControlContainer in your CDialog class? Does the dialog work itself, without RPC?


  3. #3
    Join Date
    Apr 1999
    Posts
    2

    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
  •  





Click Here to Expand Forum to Full Width

Featured