<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
you would still have to create the object that implements that
interface using a the corresponding coClass in the type library.
Otherwise it is no different to a pointer (well, it is a pointer
really) in that it points to nil until you assign it something. The
underlying object, once instantiated, is freed automatically since it
is reference counted (see TInterfacedObject).<br>
<br>
Cheers,<br>
Phil.<br>
<br>
Paul A Norman wrote:
<blockquote
cite="mid7a20a4ed0605311910v77b001d7ne355229111d9a586@mail.gmail.com"
type="cite">
<div>Hi to all,</div>
<div> </div>
<div>There is something about tyoelibraries and interfaces that I
have never quite grapsed.</div>
<div> </div>
<div>When you declare a 'variable' say for accessing an IxxxSomething
as fo example in MSHTML_TLB</div>
<div> </div>
<div> var</div>
<div> myImage : IhtmlImgElement;</div>
<div> </div>
<div>You do not have to create or dispose of it. </div>
<div>Is that because it is only some kind of pointer to something
that already latently exists in the Interfac(ed) document?</div>
<div> </div>
<div>Paul</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Delphi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
</pre>
</blockquote>
</body>
</html>