Importing .tbl files
Posted on 2006-05-29
I am having trouble importing .tbl files using Delphi 7 and 2005.
I am creating assemblies using Visual Studio .NET which provides a tool to access them as if they where COM objects. This tool creates a .tbl file for the assembly.
When I try to import this file using the "Import Type Library" tool of Delphi I always get this message :
"An error occured while referencing a user defined type. This may be caused by a missing or unregistered type library."
At first I thought that there was a problem with the file itself so I tried to use it with another programming language. I loaded MS-Access, created a form and used the "Reference" menu to add a reference to the .tbl file. Once done, could create objects from my class in my assembly and could easily use the HelloWorld method I implemented for testing purpose. In other words, the tbl seems to work fine.
I tried to import the tbl file with both Delphi 7 and Delphi 2005 without success.
Can anyone help me ?