Calling .net object from 16-bit application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rcb

    #1

    Calling .net object from 16-bit application

    Hello,

    I have a 16-bit application which has to make COM calls to a .NET object. Previoulsy, when i was using VB6.0, the 16-bit application would successfully make COM calls to an ActiveX EXE. The only equivalent of an out-of-process ActiveX EXE in .NET is class library dll. I have created a .NET dll and checked the 'Register with COM' box in Project Properties -> Build.

    But i'm still unable to call any methods from the 16-bit application. Any suggestions?

    Thanks,
  • Paul Clement

    #2
    Re: Calling .net object from 16-bit application

    On Fri, 7 Nov 2003 12:21:13 -0800, rcb <anonymous@disc ussions.microso ft.com> wrote:

    ¤ Hello,
    ¤
    ¤ I have a 16-bit application which has to make COM calls to a .NET object. Previoulsy, when i was using VB6.0, the 16-bit application would successfully make COM calls to an ActiveX EXE. The only equivalent of an out-of-process ActiveX EXE in .NET is class library dll. I have created a .NET dll and checked the 'Register with COM' box in Project Properties -> Build.
    ¤
    ¤ But i'm still unable to call any methods from the 16-bit application. Any suggestions?
    ¤

    You may need to use a 32-bit Visual Basic ActiveX EXE (as an automation proxy/host) to talk to the
    ..NET DLL. The 16-bit app can then make all of its calls (cross-process), to the .NET DLL, through
    the 32-bit ActiveX EXE.


    Paul ~~~ pclement@amerit ech.net
    Microsoft MVP (Visual Basic)

    Comment

    Working...