🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.language.delphi.general
1 messages
1 total messages Started by cyril.cavadore Wed, 14 Jan 2009 00:33
Embedding into an .exe more than one COM object or TLB -> Fails
#211
Author: cyril.cavadore
Date: Wed, 14 Jan 2009 00:33
49 lines
2076 bytes
I'm using this : CodeGear™ Delphi® 2007 for Win32®  Version
11.0.2902.10471

I have COM object A and B to put into an exe file acting as a COM
server.

If I do this
{$R A.tlb}
{$R B.tlb}

compilation fails (delphi complains about duplicate)

if I do this
{$R A.tlb}
//{$R B.tlb}
or
this

//{$R A.tlb}
{$R B.tlb}

It works, (compilation and server)

If I make a RC file with (libcom.rc)
3099 TYPELIB A.tlb
3077 TYPELIB B.tlb

compiled with brcc32 comes into libcom.res
Then including to my code with
{$R libcom.res}
-> Compilation works

BUT the COM object cannot be load and are not embedded to my exe, a
simple check with OLEVIEW shows that there is NO interface visible in
my EXE, like my exe would be a standard exe file...

There is something wrong...

Please helps
Thanks








{$R libcom.res}
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads