Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Other Programming Languages
|
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 7th, 2006, 11:51 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to esuneelbabu Send a message via Yahoo to esuneelbabu
Default Registering a vb.net dll in to the system

Hi To All,
          I developed a vb.dll in .Net. My requirement is that dll is registered in to the system. i registered using regsvr32..But i got error can't load dll. Plz say how to register that dll...

Suneel
Reply With Quote
  #2 (permalink)  
Old October 16th, 2006, 05:06 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You do not register .NET dlls like you would with COM. They are not com components, but rather "managed" components. They don't get registered into the registry.

You can use this new dll from other .NET projects (which is probably what you want to be doing) by adding a reference to it in Visual Studio. The project will automatically copy the dll to the proper directory (bin/debug or bin/release) whenever you do a build, and you'll be able to work with the dll.

There are two common ways to deploy the dlls you create in .NET. One is to place the dll in the same folder as the .exe or other .dlls that are using it. The other is to register it in the GAC (which stands for Global Assembly Cache). For a beginner, the easiest thing to do is simply place the dll into the folder of the app that is using it. Later on, you can learn about using the GAC.

You cannot use this .NET dll directly from VB6 or other applications that use COM (ActiveX) components. To do that, you need to create a Com Callable Wrapper for the component. This is know as COM Interop. This is easy to do, and you can search on how-to for that. If this is what you want to do it is likely that you will also want to install it in the GAC - although you don't have to. You might want to get a bit more experince with .NET before you take this on.

Anyway... thats a start.

Woody Z http://www.learntoprogramnow.com
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to call c#.net dll in vb 6.0 hkumar Beginning VB 6 3 August 21st, 2007 01:42 PM
How to convert .NET dll to COM dll used by VB 6.0 gvprashanth .NET Framework 1.x 0 December 4th, 2006 05:05 AM
VB.NET dll in IIS ruisantos Pro VB.NET 2002/2003 2 February 24th, 2005 01:24 AM
how to use ActiveX DLL in VB.NET debuajm General .NET 4 June 6th, 2004 05:26 AM
Calling a .Dll of Vb.NET enggalok C++ Programming 0 March 1st, 2004 06:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.