Calling .Net classes from Visual Basic 6

We have a .Net DLL. We need to call this DLL from the VB application. What procedures do we need to follow?

+3
source share
2 answers

The last time I did this, it became so thorny (some irrelevant problems related to COM +, deployment, etc.) that I actually removed the COM border and rewritten the interface as a POX web service talking to the handler (ashx) in .NET. I would suggest a serious consideration of this approach ... (unless you need to exchange window handles or similar)


If you really need a COM API, you need to create a COM-called shell; this is basically the case:

  • /.
  • / [ComVisible(true)]
  • tlbexe ,
  • regasm COM ( GAC, )

VB6 COM-, ; , VB6 (.. ) .

+1

Source: https://habr.com/ru/post/1730158/


All Articles