[DUG] Com support

Robert martin rob at wildsoft.co.nz
Tue Jul 31 10:55:05 NZST 2007


Hi

Internet back up now - what a nightmare (on top of this nightmare), 
Telecom changed our password and an ex staff member removed our router 
instructions so we had to reset the unit.  Then it just wouldn't 
connect.  Turned out we were cutting and pasting a space in with the 
user name.  Arrrggggghhh  (3hrs down the drain).

In answer to your questions..  The error reported is 'Interface not 
supported'.  This happens when we try to create the class.  As far as I 
know the _Tlb file is being compiled it, it is part of the project. 

We have never needed to manually register the exe (it has always worked 
perfectly at all our sites).  However if I do try to manually register 
it (using regsvr32) I get 'The module  ..... was loaded but the 
entry-point dllRegisterServer was not found. Make sure that ... is a 
valid dll or OCS file and try again.'.


However there is something weirder happening now.  The issue was 
reported bay a client we upgraded.  I tested it on my dev machine which 
replicated the problem.  However another Dev machine here with an older 
copy of files tested fine.  I found my machine was missing the .tlb 
file.  This fixed the 'Type library' missing from the menu but didn't 
fix the problem on my machine. 

I have just found that the exe created by may machine fails on my 
machine but runs on the other dev machine.  If I go back to my old dev 
files (missing the .tlb file) I can no longer access the 'type library' 
menu but the files compiled still work on the other Dev machine. 

I think during my attempts to fix the situation I have broken something 
else on my machine.  The 'Register type library' option is greyed out on 
my 'type library' screen and when I try and save my project I get....

'Unable to rename 'C:\.......\Client\ChreosClient.tlb' to 
'C:\.......\Client\_History\ChreosClient.tlb.~1~' '

There is no 'C:\.......\Client\_History\ChreosClient.tlb.~1~'  file 
(although there are lots of other units).  I can manually copy the file 
and create it as listed above.  However I then get the same error with 
.~2~.  I have had this problem in the past and it went away (I suspect 
with the removal of the .tlb file.  This prevents me saving the project 
and any changes to the _tlb.pas / .tlb files.

Sorry about the long story but this is driving me up the wall !

Rob Martin
Software Engineer

phone +64 03 377 0495
fax   +64 03 377 0496
web www.chreos.com

Wild Software Ltd



Myles Penlington wrote:
> Is the *_TLB.pas compiled into the project? And has the exe been
> registered? What errors are reported by COM when attempt to access the
> COM objects?
> Myles.
>
>
> -----Original Message-----
> From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
> On Behalf Of Robert martin
> Sent: Tuesday, 31 July 2007 09:38
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Com support
>
> Hi
>
> Its actually an exe that provides COM support.  I was missing the .tlb 
> which I managed to copy back of another machine.  This now allows me to 
> bring up the type library but alas still no com support.  It is failing 
> on multiple machines.
>
> Sorry our Internet is down.  Will provide further details ASAP.
>
> Rob Martin
> Software Engineer
>
> phone +64 03 377 0495
> fax   +64 03 377 0496
> web www.chreos.com
>
> Wild Software Ltd
>
>
>
> Leigh Wanstead wrote:
>   
>> Have you registered your com dll?
>>
>> Regards
>> Leigh
>> www.smootharm.com
>>
>>
>> -----Original Message-----
>> From: delphi-bounces at delphi.org.nz
>> [mailto:delphi-bounces at delphi.org.nz]On Behalf Of Robert martin
>> Sent: Monday, July 30, 2007 3:23 PM
>> To: NZ Borland Developers Group - Delphi List
>> Subject: [DUG] Com support
>>
>>
>> Hi I have an app that (usually) provides some COM support.  I have
>>     
> just
>   
>> updated a client and the COM stuff seems to be 'turned off'  (as in
>>     
> the
>   
>> calls don't seem to work.  I did the COM stuff years ago, does anyone
>> have any suggestions where to start looking (I assume its a setting /
>> line of code somewhere I have turned off).
>>
>> p.s. My COM code and tlb file still seem intact.
>>
>> Hellllllp
>>
>> --
>> Rob Martin
>> Software Engineer
>>
>> phone +64 03 377 0495
>> fax   +64 03 377 0496
>> web www.chreos.com
>>
>> Wild Software Ltd
>>
>> _______________________________________________
>> NZ Borland Developers Group - Delphi mailing list
>> Post: delphi at delphi.org.nz
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to delphi-request at delphi.org.nz with
>>     
> Subject:
>   
>> unsubscribe
>>
>>
>> _______________________________________________
>> NZ Borland Developers Group - Delphi mailing list
>> Post: delphi at delphi.org.nz
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to delphi-request at delphi.org.nz with
>>     
> Subject: unsubscribe
>   
>>   
>>     
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>
> Attention:
> This communication is confidential and may be legally privileged.  If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
>   


More information about the Delphi mailing list