Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 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
 
Old October 3rd, 2007, 07:52 AM
Authorized User
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic Reference to VB6 DLL

Hello,
I have created a web service which is using a VB6 DLL the same DLL is being used by other application also, So it changes many times. But because of this I have to build my web service each time with new reference. Can any one please suggest me the solution for this, So I can create a wrapper or something like that which will take care of the new DLL and I need not to rebuild it.
Thanks in advance...

__________________
No WAY is good until you know your DESTINATION
 
Old October 3rd, 2007, 12:51 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

.NET already creates a wrapper to access the COM dll, the Runtime Callable Wrapper assembly. This assembly is the actual assembly referenced by your web service project and is the one you need to rebuild. If you configure your COM dll to use binary compatibility you might be able to update the COM dll without needing to update the wrapper. I've done this in the past. However, if you change any of the interfaces of the classes in the COM dll you'll be forced to update the wrapper. You might want to look into automating the process of building the wrapper and web application.

-Peter
 
Old October 4th, 2007, 12:40 AM
Authorized User
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Peter,
Thanks for reply. But I talked to the person responsible for making new dll. Each time he changes the dll he change name also e.g. DLLNAME_Date.dll.
So in this condition I think building web service each time is essential. Could you please suggest something?

 
Old October 4th, 2007, 11:41 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I have used the NAnt build/scripting tool for lots of tasks. This might prove useful for you. It can run the interop generator program (tlbimp.exe) to create interop assemblies. You can also use it to build applications. You could use that to rebuild your web service application whenever there's an update to the COM dll.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference to a DLL costaaa C# 0 August 5th, 2006 03:07 PM
How to reference a .dll file? ohChuck C# 4 April 20th, 2006 10:32 AM
Reference lib or .dll in application? [email protected] C# 1 February 11th, 2005 02:25 PM
DLL & Excel - keep having to reset DLL reference! James Diamond Pro VB 6 2 May 25th, 2004 03:37 AM
Can a VB6 ActiveX DLL reference a spreadsheet? james gold Pro VB 6 0 October 2nd, 2003 10:02 AM





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