<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>Depends on what wheel you're trying to 
reinvent.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>To take one example, if your COM server object is on 
another machine, surely there is the potential for the type library on your 
client machine to not match the type library of the server object that you're 
trying to connect to.&nbsp; Hence our use of a specific version function exposed 
explicitly by the COM server object.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>I agree that on the same PC, then the number in the typelib 
could be what you're looking for.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>Anyways, with a bit of googling, here are some things you 
could look at:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>The ITypeLib:GetLibAttr interface/function: <A 
href="http://msdn2.microsoft.com/en-us/library/ms221641.aspx">http://msdn2.microsoft.com/en-us/library/ms221641.aspx</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>Appears to return a pointer to a record with Major and 
Minor version numbers.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>The TComServerObject class has a TypeLib property which 
returns an ITypeLib interface.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>No idea whether that's accessible in your case or not, but 
you can look into it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>HTH,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff size=2>C.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><FONT 
face=Tahoma><B>From:</B> delphi-bounces@delphi.org.nz 
[mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>Leigh 
Wanstead<BR><SPAN class=082034202-05042007><FONT face=Arial 
color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><SPAN 
class=635392902-05042007><FONT face=Arial color=#0000ff>Yes, from a COM 
client.</FONT></SPAN></FONT></DIV>
<DIV><SPAN class=635392902-05042007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=635392902-05042007><FONT face=Arial color=#0000ff size=2>I 
thought that version information is already in the typelib. I don't want to 
reinvent the wheel.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
  face=Tahoma>-----Original Message-----<BR><B>From:</B> 
  delphi-bounces@delphi.org.nz [mailto:delphi-bounces@delphi.org.nz]<B>On Behalf 
  Of </B>Conor Boyd<BR><SPAN class=082034202-05042007><FONT face=Arial 
  color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><SPAN 
  class=018030523-04042007><FONT face=Arial color=#0000ff>Do you mean from a COM 
  client?</FONT></SPAN></FONT></DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2>Not sure if there is a way.&nbsp; We just have a method 
  on the COM server object which returns a version number of use to 
  us.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2>HTH,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2>C.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff size=2>P.S.&nbsp; I know it's less of an issue these days, but 
  with all due respect, your bitmap would have been better sent (and just as 
  readable) as a 20KB JPEG or a 4KB PNG...</FONT></SPAN></DIV><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  </DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  size=2><FONT face=Tahoma><B>From:</B> delphi-bounces@delphi.org.nz 
  [mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>Leigh 
  Wanstead<BR><SPAN class=018030523-04042007><FONT face=Arial 
  color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=956264922-04042007>How to retrive com 
  object runtime version number specified in typelib? I have enclosed a bitmap 
  file for your reference.</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>