Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2006

Tip: Looking for answers? Try searching our database.

VB5 Dlls in VB.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam - 07 Nov 2006 20:49 GMT
Hi,

Sorry if this is a basic question, I haven't been developing in vb .net
that long.

Basically my problem is as follows.  I have a few VB5 dlls which I have
referenced in my VB.Net application located my c:\winnt\system32\
directory.  (The VB5 dlls are also located in all of the user's
c:\winnt\system32\ directory's).  After compiling the .Net application,
interop dlls are created for each of my VB5 dlls and are stored in the
\Bin directory, along with a copy of the VB5 dlls.  When I move the
.net executable to the network drive where all the user's will run the
application from, the application will only run if the interop dlls and
the VB5 dlls are located in the same directory.  If I remove either the
interop or VB5 dll's, then the application does not work.

As I have told the VB.net application to reference the dlls, from the
c:\winnt\system32\ directory, I do not understand that when compiled,
the application must use the dlls from the same location as the
executable.

Is the Interop dll a pointer to the dlls, and if so, is it possible to
modify the interop dlls to point to a location other than the
application path, i.e, the c:\winnt\system32\ directory?  Can anyone
please help me out with changing the location of VB5 dlls to anywhere
other than the application path?

TIA,

-adam
Mattias Sjögren - 08 Nov 2006 05:57 GMT
>(The VB5 dlls are also located in all of the user's
>c:\winnt\system32\ directory's).

Are they registered?

>Is the Interop dll a pointer to the dlls, and if so, is it possible to
>modify the interop dlls to point to a location other than the
>application path, i.e, the c:\winnt\system32\ directory?

The interop DLL doesn't contain any fixed path, no. COM relies on
registration to know where the DLL is located.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Adam - 08 Nov 2006 10:35 GMT
The VB5 dlls are already registered on the user's machines, located in
the c:\winnt\system32\ directory.

If COM relies on registration to know where the DLL is located, does
that mean I nede to to change the location in the registry?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.