Re: How to reference an assembly created from VS.Net
From: Jose Perez (jomperez_at_optonline.net)
Date: 01/13/04
- Next message: Chris Thornton: "Re: Clearing the Clipboard"
- Previous message: Marcio Ehrlich: "Re: How to release an opened file?"
- In reply to: Tom Leung: "How to reference an assembly created from VS.Net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 13 Jan 2004 16:50:36 GMT
"Tom Leung" <tocsleung@so-net.com.hk> wrote in message
news:fa12abdc.0401130816.743e9e55@posting.google.com...
> I created a library in C# and add a reference to a assembly in a
> delphi 8 project.
> When I try to reference the class in this assembly, I got the
> following error as follow:
>
> [Fatal Error] Internal error: U1549
> [Fatal Error] Required package 'MyPackageName' not found
Did you add a reference to the assembly in your code? In C#, the equivalent
would be "using MyPackageNamespace;" To make sure that you use the correct
namespace, use the object browser to see what the namespace is.
> [Fatal Error] Internal Interbal error: U1549
> [Fatal Error] Required package 'MyPackageName' not found
> [Pascal Error] WinForm.pas(1): Unable to invode Code Completion due to
> errors in source code.
>
> May I reuse the assembies created by C# or the othe .Net languages?
The purpose of .NET's CLR (common language runtime) is to enable assemblies
created by one language to be accessible by any other languages. In short,
yes.
> How can I reference the non-deiphi assemblies in the delphi code?
Just as you would reference Delphi-based assemblies. Treat the C# assembly
as if it was a Delphi assembly.
> Anyone can help me to solve the above problems?
- Next message: Chris Thornton: "Re: Clearing the Clipboard"
- Previous message: Marcio Ehrlich: "Re: How to release an opened file?"
- In reply to: Tom Leung: "How to reference an assembly created from VS.Net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|