CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Incorporating OCX into simple DLL

    I have just finished incorporating two OCX's into an MFC dll.
    My first question is:
    I embedded the OCX's into a dialog resource and then instantiated the wrapper class for the dialog resource. Is this the typical methodology of incorporating third-party OCX's into the MFC framework?
    My second question is:
    Can I incorporate an OCX into a simple DLL (non-ActiveX and non-MFC)?

    Kevin M. Reilly



  2. #2
    Join Date
    Apr 1999
    Posts
    37

    Re: Incorporating OCX into simple DLL

    I believe wrapper class is the best way for using OCXs or other components.
    If you don't use wrapper class, you may call all OCX's method using "automation", IDispatch interface manually.

    The OCX can be used in general DLL.
    Frankly I've never done.
    But it's possible for any C program to contain OCX. Maybe by wrapper class or automation.

    A programmer who loves Goethe.

  3. #3
    Guest

    Re: Incorporating OCX into simple DLL

    Thanks for the response.

    I have gone the IDispatch route and have received nothing but GPF's for my trouble. I feel I am missing something. It can't be this convoluted!

    Kevin M. Reilly


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