Leaders dynamic_sysop Posted May 4, 2003 Leaders Posted May 4, 2003 hi i read on a couple of sites that you can make a dll in VB.NET and reference it in vb6, does anyone know if this is possible and if so, have you any idea on how to? thanx.:) Quote
AndreRyan Posted May 5, 2003 Posted May 5, 2003 It's quite simple but you will end up with 2 dlls(COM referencer, .Net DLL) Use the Run command in the Start Menu: "C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\tlbimp.exe" "C:\MyProject\Bin\MyProject.dll" This will create MyProject.tlb which can be used in VB 5/6 and any other COM enabled languages(Note the .Net framework is still required to use the dll) Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Leaders dynamic_sysop Posted May 5, 2003 Author Leaders Posted May 5, 2003 thanx , although it hasn't made a .tlb file ( only still got the Dll , which still wont reference in vb6 :S ) Quote
Leaders dynamic_sysop Posted May 5, 2003 Author Leaders Posted May 5, 2003 it's ok, i found what it was "tlbexp.exe" not "tlbimp.exe" :) cheers Quote
da_tibmeister Posted September 26, 2003 Posted September 26, 2003 I have wondered this, ran acrossed this post, and tried it. The problem is I can reference the .tlb, and even see the classes, but not the public function inside the class..... Is this a rectifiable problem? da_tibmeister:D Quote
Recommended Posts