PC Review


Reply
Thread Tools Rate Thread

Calling Assembly

 
 
Steve Long
Guest
Posts: n/a
 
      26th Apr 2005
Hello,
I've got an app that supports plugins. It's an exe and both it and any
plugin must implement iPlugin to enable communication between the exe and
the .dll plugin. My problem is that I need to get a type from the exe from
within the plugin but if I call [Assembly].GetCallingAssembly in the
plugin's constructor, the returned assembly's name is mscorlib rather than
the exe that new'ed it. How can I get the assembly of the exe in this case?

Any help is much appreciated

Steve


 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      26th Apr 2005
Steve,

>My problem is that I need to get a type from the exe from
>within the plugin


Can't you pass it tp the plugin as a property or method parameter on
your IPlugin interface?



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
Steve Long
Guest
Posts: n/a
 
      26th Apr 2005
Yea, I guess I can. It just means that I have to change a couple of dll is
all. I was trying to work around having to do that. Fortunately, I wrote all
of the assemblies so I can do what I want. It would be cool to get it
through reflection though.

Steve

"Mattias Sjögren" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Steve,
>
> >My problem is that I need to get a type from the exe from
> >within the plugin

>
> Can't you pass it tp the plugin as a property or method parameter on
> your IPlugin interface?
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strong-named assembly calling unsigned assembly: FileNotFoundexception Carol Microsoft C# .NET 7 21st Apr 2009 05:21 AM
Problem calling assembly which references another assembly from an asp page christianhaynes@hotmail.com Microsoft ASP .NET 3 3rd Mar 2006 04:52 PM
calling a 2.0 CF assembly from a 1.1 assembly ? Steve B. Microsoft Dot NET Compact Framework 4 29th Jul 2005 01:17 AM
Getting the name of the calling assembly Steve Singer Microsoft VB .NET 1 15th Feb 2005 10:19 PM
MFC DLL Calling C# Assembly David Microsoft VC .NET 0 11th Oct 2004 01:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:15 PM.