help: Call C# winforms dll from VB6 project?

后端 未结 3 1936
情歌与酒
情歌与酒 2021-01-21 10:52

I have a VB6 project(windows application) and I have to redevelop a module in the existing VB6 project in C#.net.

The module that I develop in C#.net should be a dll an

3条回答
  •  甜味超标
    2021-01-21 11:36

    The only way to do it is to expose your C# class as a COM object (also called a CCW - COM Callable Wrapper), and create an instance of that COM object in your VB6 code.

    This should help you get started:

    http://www.bing.com/search?q=C%23+CCW&go=&form=QBRE&qs=n

提交回复
热议问题