Re: After each new dll compilation I have to set the reference to the dll in Excel again.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Roedd <<Oscar>> wedi ysgrifennu:

> I
> receive several warnings during compilation stating these
> differences. They advice me to return to the 'old' projectname and
> arguments in order to prevent this message to appear. I was wondering
> how I can set the Binary Compatibility check with the new project as
> reference instead of the old one.
>

Welcome to com dll hell.

Ignore the warnings and compile the dll. This will become the base dll for
all of your future developments. All past distribution of your project must
be recalled or abandoned. I hope that this will not cause you too much
trouble, but it must be done.

Create a copy of the dll and rename it to [yourdllname].cpt

Now set the binary compatibility of the VB project to this (*.cpt) file.

Remember that from now on you have a contract with your project: You WILL
NOT change names of properties or methods and you WILL NOT change their
arguments. By all means add new properties and/or methods, and hide obsolete
ones, but stick to the contract or you will be back in com dll hell. I've
been there. It's not a nice place.

--
Rob

http://www.asta51.dsl.pipex.com/webcam/

This message is copyright Robert Bruce and intended
for distribution only via NNTP.
Dissemination via third party Web forums with the
exception of Google Groups and Microsoft Communities
is strictly prohibited and may result in legal action.


.



Relevant Pages

  • Re: Access runtime 2003 with Common Dialog DLL
    ... > that do and those that do not generate warnings is not clear. ... My MDE runs without warnings on machines that include ... > XP Pro and on machines that do not have any version of Office on them. ... My attempts to register the DLL using ...
    (microsoft.public.access.setupconfig)
  • Re: Access runtime 2003 with Common Dialog DLL
    ... DLL have always worked well for me in the past, ... The application installs without error and runs ... >> that do and those that do not generate warnings is not clear. ... >> XP Pro and on machines that do not have any version of Office on them. ...
    (microsoft.public.access.setupconfig)
  • Re: Exporting stl class
    ... and it seems to work with valarray too. ... For the warnings, ... before template instantiation ... // Exported from DLL: ...
    (microsoft.public.vc.language)