0

I need to get certain libraries imported in a program in Visual Basic .net Code to a VB6 Project (please do not ask why... ;))

Is there a way to import these libraries or equivalents to a VB6 Project ?

Imports System.Net.Sockets
Imports System.Threading
Imports System
Imports System.IO

I am unfamiliar with both languages.

refuzee
  • 408
  • 4
  • 15
  • 1
    No, you can't port the libraries. However, you can make a DLL with classes/functions of your interest, and then use the DLL in your VB6 project. – Pradeep Kumar Sep 16 '15 at 10:48
  • What would you do after you've imported them? – Andrew Mortimer Sep 16 '15 at 10:49
  • use the libraries? I have running VB.net code but it uses imports of these libraries – refuzee Sep 16 '15 at 12:50
  • Just to be clear you are trying to run managed .Net code in a VB6 app? – Matthew Whited Sep 16 '15 at 12:58
  • You could put the running VB.Net code in a COM-visible DLL and just call it from the VB6 app, like [this](http://stackoverflow.com/questions/1170794/a-simple-c-sharp-dll-how-do-i-call-it-from-excel-access-vba-vb6) – MarkJ Sep 17 '15 at 12:55

0 Answers0