What is the best way to use .NET classes from Visual Basic 6?

At my workplace, I'm stuck with Visual Basic 6, but after reading the answer to “ How to sort arrays using vbscript? ” I have the hope that at least some of the missing VB6 functions can be supplemented with .NET functions. (Different kinds of collections, mainly)

It seems that at least some .NET classes are scriptable and can be used with VB6 through CreateObject. But I get a great feeling to be true, so ...

  • Are there any pitfalls that I may encounter? (In addition, .NET must be installed)
  • Are all .NET classes available through CreateObject?
  • Is there a way to import these classes into my VB6 project, so I can have IntelliSense?
  • Do you have any general suggestions regarding this approach?
+5
source share
5 answers

The VB Fusion Developer Center on MSDN has a lot of information . Of particular interest is the use of the .NET Framework class library from Visual Basic 6 and may I interest you in 5000 classes? .

You will need to write some code in .NET to use the methods described in the articles. If you do not already have Visual Studio 2008, you can download for free

+6
source

"COM Callable Assemblies". INET.

.

.

+4

CAD/CAM. , DLL .NET.

, , DLL.

. Microsoft , . , .NET , VB6 .

, .NET-, COMM.

, COM DLL IN VISUAL BASIC SIX. DLL . , DLL (, ..

.NET , .NET VB6/COM.

, / , . .NET framework. CAD/CAM, , .

, .NET COM-, , , , COM, . ByVal .NET . Let Set

+2

:

, , MS.NET mscorlib.dll, Visual Basic 6. CLI, unitlity, mscorlib.dll .

+1

interop - ; .. . VB VS2008 .. , , .

, VB6, #, ..

0

All Articles