Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 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 May 24th, 2004, 08:54 AM
Authorized User
 
Join Date: Jan 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default DLL & Excel - keep having to reset DLL reference!

Hi,

Bit of a specialised request...

I am writing a DLL with VB6, for use by an Excel spreadsheet.

My spreadsheet references the DLL.

Problem: whenever I alter the DLL and re-compile it, the "references list" in the spreadsheet says "<DLL name> - missing". I then have to browse to the DLL and place it back in the reference list. This is very tedious during development, as I am constantly switching from VB6 to Excel while I test/debug/develop.

Is there a way to avoid this problem?

Thanks.

James

//##

 
Old May 24th, 2004, 09:02 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi James,

You can set the compatibility options of your component to Project Compatibility or Binary Compatibility (depends on the changes to the interface you're going to make). To do this, choose Project | ProjectName Properties and switch to the Component tab.

Take a look here for more information:
http://msdn.microsoft.com/library/de...patibility.asp

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 25th, 2004, 03:37 AM
Authorized User
 
Join Date: Jan 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

You're a genius. Thanks for your quick response. That has solved it.

Many thanks.

James






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Reference to VB6 DLL webnet .NET Framework 2.0 3 October 4th, 2007 11:41 AM
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
Can an ActiveX DLL reference a spreadsheet? james gold Excel VBA 0 October 2nd, 2003 10:03 AM





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