Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Who renamed my file and stuffed a 16bit resource in it?

1 view
Skip to first unread message

Blackbird Crow Raven

unread,
Jul 6, 2006, 7:05:30 PM7/6/06
to
I created a MIDAS/Datasnap app in Delphi 6, where it ran fine, but recently
loaded it in BDS2006/Delphi 2006 and tried to run it. It wouldn't compile.
In the server app, I first got the err msg:


"[Pascal Error] E1026 File not found JCPServer.TLB"


That's true-there is no such file. The corresponding file's name is actually
JCPServer_TLB.pas


Nevertheless, I moved a copy of JCPServer_TLB.pas to another directory,
saved it as JCPServer.TLB, and copied that back to the project's directory
(so there is now both a JCPServer_TLB.pas and a JCPServer.TLB there). Now
when trying to compile, I get the err msg: "[Pascal Error] E2161 RLINK32:
Unsupported 16bit resource in file "C:\JCPServer\JCPServer.TLB" "

How did a 16bit resource get into my type library, and what can I do to
remedy the situation?
--
Be the first one on your block to read the uproariously hilarious novel "the
Zany Time Travels of Warble McGorkle" (Book 2 in a trilogy). Download it
here: http://codecentral.borland.com/item.aspx?id=24002


Blackbird Crow Raven

unread,
Jul 7, 2006, 4:51:26 PM7/7/06
to
Quoth the Raven:

>
> "[Pascal Error] E1026 File not found JCPServer.TLB"

> <snip>

> (so there is now both a JCPServer_TLB.pas and a JCPServer.TLB there). Now
> when trying to compile, I get the err msg: "[Pascal Error] E2161 RLINK32:
> Unsupported 16bit resource in file "C:\JCPServer\JCPServer.TLB" "
>
> How did a 16bit resource get into my type library, and what can I do to
> remedy the situation?

I should have mentioned--the source was not just ported from D6/Win2K to
D2006/XP, but also from one machine to another.

Perhaps I just need to re-gen the .TLB? I'll find it Monday, I guess...

Bill Todd

unread,
Jul 7, 2006, 5:13:23 PM7/7/06
to
Since no one else has replied to your message I will try to help.
However, be warned that I do not understand the internals of type
libraries as they apply to Midas well.

Blackbird Crow Raven wrote:

> I created a MIDAS/Datasnap app in Delphi 6, where it ran fine, but
> recently loaded it in BDS2006/Delphi 2006 and tried to run it. It
> wouldn't compile. In the server app, I first got the err msg:
>
>
> "[Pascal Error] E1026 File not found JCPServer.TLB"

Somehow you have lost the type library file. Unless you can recover it
from a backup you may have a problem because I do not know if there is
any way to recreate it.

>
>
> That's true-there is no such file. The corresponding file's name is
> actually JCPServer_TLB.pas

That is the Pascal source for the type declarations. This file is
recreated automatically by the Type Library Editor every time you edit
he type library.

>
>
> Nevertheless, I moved a copy of JCPServer_TLB.pas to another
> directory, saved it as JCPServer.TLB, and copied that back to the
> project's directory (so there is now both a JCPServer_TLB.pas and a

That definitely will not work. The .TLB file and the ???_TLB.PAS file
are two entirely different things.

> JCPServer.TLB there). Now when trying to compile, I get the err msg:
> "[Pascal Error] E2161 RLINK32: Unsupported 16bit resource in file
> "C:\JCPServer\JCPServer.TLB" "
>
> How did a 16bit resource get into my type library, and what can I do
> to remedy the situation?

It did not. The linker is confused because you renamed a Delphi source
file and told the linker that it is a binary type library file.

You need to recover the missing type library file by some means.

--
Bill Todd (TeamB)

Blackbird Crow Raven

unread,
Jul 7, 2006, 6:35:47 PM7/7/06
to
"Bill Todd" <n...@no.com> wrote in message
news:44ae...@newsgroups.borland.com...

> Since no one else has replied to your message I will try to help.
> However, be warned that I do not understand the internals of type
> libraries as they apply to Midas well.
>
> Somehow you have lost the type library file. Unless you can recover it
> from a backup you may have a problem because I do not know if there is
> any way to recreate it.

Ah, I just forgot to copy that file from my laptop to the floppy (no network
card) to the desktop machine. That makes sense; I will remedy that
forthwith. Thanks, Bill!

0 new messages