Re: Calling VB DLL from Delphi - Access Violation Error In Delphi After DLL is rebuilt?



On Fri, 22 Apr 2005 14:14:58 +0100, "Andrew Oborn" <v834@xxxxxxxxxxx>
wrote:

<snip>

>
>However.......
>
>As/when the VB DLL is recompiled (which, when I come to using this for
>something more practical, may be the case), when I next come to run the
>delphi form, I get an exception EIntfCastError with message 'Interface not
>supported'. The only solution to get this working again is to re-import the
>type library into the project - but, once deployed, the DLL (in this case
>from another application) may be updated and I don't really want to have to
>make sure my delphi program is updated every time (working on the assumption
>that just because the DLL is updated, existing functionality is not changed,
>only new stuff added).
>
>Any thoughts on how I get round this? Presumably it's something to do with
>the DLL version?

Try setting the VB DLL's project to Binary Compatibility
.



Relevant Pages

  • Re: Trouble when creating forms in a DLL
    ... >recently i got a BIG trouble when trying to build a new Form inside a ... There /is/ an Application object inside a DLL ... you want a Delphi Form (not a non-Delphi Form) then one has to live ...
    (comp.lang.pascal.delphi.misc)
  • Help with Assembly Binding in ASP.NET 2.0 Web Application Projects
    ... from the bin directory of our ASP.NET 2.0 web application by changing the ... Policy not being applied to reference at this time (private, custom, ... another dll which is referenced in precisely the same way has ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Creating classes via DLL.
    ... >create my instances of the classes from the dll and the dispose of the DLL. ... What you want to do is create that pointer and then totally zap the ... well writing a self destruct mechanism ...
    (comp.lang.pascal.delphi.misc)
  • Re: how to get .lib from .dll
    ... > directly with your application and avoiding another DLL load. ... Static linking is only appropriate if you have one single binary. ... I find it easier to dynamic link and ...
    (comp.lang.asm.x86)
  • Re: C coding guidelines
    ... within that DLL. ... point into source code is a part of the source code. ... what exists after the compiler/linker get done with it. ...
    (comp.lang.c)