Re: How to reference an assembly created from VS.Net

From: Jose Perez (jomperez_at_optonline.net)
Date: 01/13/04


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?



Relevant Pages

  • Re: circular reference and events
    ... For an object to signal an event to a subscriber, it does need a reference to the object that has subscribed to the event. ... so i thought for the business object to subscribe to a presenter event (go ... That is, you are trying to use types from two different assemblies, in the other assemblies. ... public int Value {get; private set;} ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Office PIA:s. Can they be made to work properly?
    ... I found the only way to reference a version prior to the one on the build ... > b) Build+Run successful, ... > WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# Plugin system - same interface in two different assemblies...
    ... "add a reference to the appropriate assemblies to each and every project"? ... You don't have each plugin project deciding what ... its idea of the interface is. ... can't by forcing people to include them in assemblies as I've explained. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VS 2005: multiple dlls for one website possible?
    ... >and shouldn't reference and web project assemblies. ... it calls the classes in the web app. ... and the custom control ...
    (microsoft.public.dotnet.framework.aspnet)