Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory Usage...(RSS Bandit) (OT) Pin
Kannan Kalyanaraman7-Jun-03 23:44
Kannan Kalyanaraman7-Jun-03 23:44 
GeneralRe: Memory Usage...(RSS Bandit) Pin
Kant6-Jun-03 5:45
Kant6-Jun-03 5:45 
Generalimplementing interface not in same dir as class Pin
zuhx5-Jun-03 10:42
zuhx5-Jun-03 10:42 
GeneralRe: implementing interface not in same dir as class Pin
Bo Hunter5-Jun-03 17:03
Bo Hunter5-Jun-03 17:03 
GeneralRe: implementing interface not in same dir as class Pin
zuhx5-Jun-03 19:56
zuhx5-Jun-03 19:56 
GeneralRe: implementing interface not in same dir as class Pin
shaunAustin5-Jun-03 21:56
shaunAustin5-Jun-03 21:56 
GeneralRe: implementing interface not in same dir as class Pin
zuhx6-Jun-03 5:57
zuhx6-Jun-03 5:57 
GeneralRe: implementing interface not in same dir as class Pin
shaunAustin6-Jun-03 9:05
shaunAustin6-Jun-03 9:05 
No probs with the helping... we'll get this one cracked!! Smile | :)

If I can try to explain how I think you want to implement what I think your trying to do and you can scream at me and tell me I'm stupid Poke tongue | ;-P

* You have a forms app
* You have an assembly dll with interface definitions
* You have another assembly with an implementation of said interfaces.

You want to Have your app know about only the interfaces and dynamically at run time look into a dll assembly and instantiate a class which implements the interface...

This is how you do it...

* In a solution add the three projects.
* In your Main app in solution explorer you go to "references" and then right click and select "Add Reference". When the dialog comes up select the "Project References" tab and select the project which defines the interfaces.
* In the "plug-in" (the assembly which IMPLEMENTS the interface) do the same thing, Add Reference->Project References->Select the assembly which defines the interfaces.

To explain this bit. The compiler needs to know where these Dlls are for the linking stage so what happens when you add a project based reference is that Visual Studio will make sure an up-to-date copy of the appropriate assemblies are in your bin folder. If you use a non-project based reference you can get into trouble.

If you follow the above points, assuming your "usings" are correct too your app will build and assuming the path to the dynamically loading assembly is correct the whole thing will work. (Don't forget to test for a "FileNotFoundException")...

Hope that's a bit more help... Big Grin | :-D

I __AM__ going to write an article about this issue!

Cheers

Shaun Big Grin | :-D
GeneralRe: implementing interface not in same dir as class Pin
zuhx6-Jun-03 11:00
zuhx6-Jun-03 11:00 
GeneralRe: implementing interface not in same dir as class Pin
shaunAustin6-Jun-03 12:06
shaunAustin6-Jun-03 12:06 
GeneralRe: implementing interface not in same dir as class Pin
zuhx8-Jun-03 19:31
zuhx8-Jun-03 19:31 
GeneralRe: implementing interface not in same dir as class Pin
shaunAustin9-Jun-03 8:34
shaunAustin9-Jun-03 8:34 
GeneralRe: implementing interface not in same dir as class Pin
zuhx11-Jun-03 4:21
zuhx11-Jun-03 4:21 
GeneralRe: implementing interface not in same dir as class Pin
Kant6-Jun-03 16:34
Kant6-Jun-03 16:34 
GeneralRe: implementing interface not in same dir as class Pin
shaunAustin7-Jun-03 0:49
shaunAustin7-Jun-03 0:49 
GeneralRe: implementing interface not in same dir as class Pin
Kant7-Jun-03 4:42
Kant7-Jun-03 4:42 
GeneralRe: implementing interface not in same dir as class Pin
shaunAustin8-Jun-03 21:50
shaunAustin8-Jun-03 21:50 
GeneralRe: implementing interface not in same dir as class Pin
Kant9-Jun-03 12:13
Kant9-Jun-03 12:13 
GeneralRe: implementing interface not in same dir as class Pin
shaunAustin9-Jun-03 12:53
shaunAustin9-Jun-03 12:53 
GeneralRe: implementing interface not in same dir as class Pin
Kant9-Jun-03 15:34
Kant9-Jun-03 15:34 
GeneralRe: implementing interface not in same dir as class Pin
Kant7-Jun-03 5:17
Kant7-Jun-03 5:17 
GeneralObject events through the ide Pin
RB@Emphasys5-Jun-03 8:53
RB@Emphasys5-Jun-03 8:53 
GeneralRe: Object events through the ide Pin
Paresh Gheewala5-Jun-03 9:35
Paresh Gheewala5-Jun-03 9:35 
GeneralRe: Object events through the ide Pin
RB@Emphasys5-Jun-03 9:48
RB@Emphasys5-Jun-03 9:48 
GeneralMaster-Detail datagrid Pin
Madhuri Mittal5-Jun-03 6:38
Madhuri Mittal5-Jun-03 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.