Click here to Skip to main content
15,906,816 members
Home / Discussions / C#
   

C#

 
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 
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 
Ahhhh! Now I'm with you!!

You can't do it that way. You need to put your interfaces in a separate assembly so that they can be shared and accessed by both EXE and DLL without the EXE needing to know anything about the DLL.

You can't make the assembly reference the EXE project, that just won't work.

Before .NET you could possibly have included another copy of the .cs file that defined the interface in the DLL but because types are best accessed as fully-qualified-names you won't really get away with that.

So, to recap.

The standard (if indeed, THE correct) way to do what you need to do is to mave your interface definitions from the EXE into a separate dll then reference that project in both the EXE and DLL project.

Shaun
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 
GeneralRe: Master-Detail datagrid Pin
Paresh Gheewala5-Jun-03 9:19
Paresh Gheewala5-Jun-03 9:19 
GeneralHosting an IE window in a form Pin
eggie55-Jun-03 4:54
eggie55-Jun-03 4:54 

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.