Class Library
Can a Class Library written in VB.net(VB or C#) be used in a VB6 app?
Dan
Windows Forum
Can a Class Library written in VB.net(VB or C#) be used in a VB6 app?
Dan
by mohit
.NET assemblies cannot be directly accessed by COM components since the concept of typelibs is history now. You must use the regasm tool (comes with the .NET framework) to publish the typelib of a .NET assembly so that COM components (or VB projects) can get access to your .NET assemblies.
Example -
"regasm myDOTNETComponent.dll /tlb:myDOTNETComponent.tlb" will register all public classes contained in myDOTNETComponent.dll, and generate and register the type library myDOTNETComponent.tlb, which contains definitions of all the public types defined in myDOTNETComponent.dll
For more details, type regasm/? or simply regasm at the command prompt.
Good luck!
This discussion is closed to new replies.
Sort by Trending