"[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
> <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...
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)
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!