Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: Interface issue when implementing Factory pattern Pin
Eddy Vluggen16-Nov-12 9:01
professionalEddy Vluggen16-Nov-12 9:01 
GeneralRe: Interface issue when implementing Factory pattern Pin
MichCl16-Nov-12 9:18
MichCl16-Nov-12 9:18 
GeneralRe: Interface issue when implementing Factory pattern Pin
Eddy Vluggen16-Nov-12 13:46
professionalEddy Vluggen16-Nov-12 13:46 
GeneralRe: Interface issue when implementing Factory pattern Pin
MichCl19-Nov-12 2:20
MichCl19-Nov-12 2:20 
AnswerRe: Interface issue when implementing Factory pattern Pin
Eddy Vluggen19-Nov-12 2:32
professionalEddy Vluggen19-Nov-12 2:32 
GeneralRe: Interface issue when implementing Factory pattern Pin
MichCl19-Nov-12 3:51
MichCl19-Nov-12 3:51 
GeneralRe: Interface issue when implementing Factory pattern Pin
Eddy Vluggen19-Nov-12 4:46
professionalEddy Vluggen19-Nov-12 4:46 
GeneralRe: Interface issue when implementing Factory pattern Pin
MichCl19-Nov-12 9:38
MichCl19-Nov-12 9:38 
I figured it out... See below, after my response to your last post.

There are compilation errors with the VS project distributed as I first presented it. It's

CR5_new.CR5 does not implement interface member iCR.initCRData(...) (but it does)

and

iCR.initCRData in explicit interface declaration is not a member of interface (but it is)

I have a reference to the VS project iCR in my CR5_new project.

I'm not sure what you're referring to with GAC above. When I look in my CR5_new project, even though I see it referenced in the solution explorer under references, when I look in MyComputer, I don't see a copy of the dll, so presumably it's not a copy, it's actually looking for it in the original location. When I look at the Solution Explorer properties of iCR, it's giving the path to the correct original location for the dll.

Alternatively, when I change the name of the interface to iC from iCR, I had to change it in
public class CR5:iC in my CR5_new namespace/visual studio project. Plus I had to change it to iC.initCRData(...). Then the above compile errors changed to use the new interface name.

I figured it out when I was looking into the above... My CR5 project had another class in it for USB_Comm.CB. The iCR was also referring to this class for parameters in the interface. So they were cross-referencing. So I moved the USB_Comm.CB class into it's own VS project so they can both refer to it without cross-references.

On the one hand I feel like I'm not using multiple class VS projects, but if I kept these things in them, I'd have repeats of classes in my VS projects like El. Plus when I create my CR6 project, I can re-use code more. Thanks for all of your help!! Smile | :)
GeneralRe: Interface issue when implementing Factory pattern Pin
Eddy Vluggen19-Nov-12 9:53
professionalEddy Vluggen19-Nov-12 9:53 
QuestionIssue in accessing 32 bit C++ DLL in Windows Server 2008 Pin
Kumaran Poongavanam16-Nov-12 8:32
Kumaran Poongavanam16-Nov-12 8:32 
AnswerRe: Issue in accessing 32 bit C++ DLL in Windows Server 2008 Pin
Eddy Vluggen16-Nov-12 9:04
professionalEddy Vluggen16-Nov-12 9:04 
GeneralRe: Issue in accessing 32 bit C++ DLL in Windows Server 2008 Pin
Kumaran Poongavanam16-Nov-12 10:09
Kumaran Poongavanam16-Nov-12 10:09 
AnswerRe: Issue in accessing 32 bit C++ DLL in Windows Server 2008 Pin
Dave Kreskowiak16-Nov-12 11:55
mveDave Kreskowiak16-Nov-12 11:55 
AnswerRe: Issue in accessing 32 bit C++ DLL in Windows Server 2008 Pin
jschell17-Nov-12 6:11
jschell17-Nov-12 6:11 
QuestionOutlook 2010 / C# - Hide or Remove item from ContextMenuContactItem + add custom item into it Pin
Cristian Capannini16-Nov-12 5:20
Cristian Capannini16-Nov-12 5:20 
QuestionException Handling Pin
Phanindra26116-Nov-12 3:21
Phanindra26116-Nov-12 3:21 
AnswerRe: Exception Handling Pin
BobJanova16-Nov-12 3:41
BobJanova16-Nov-12 3:41 
GeneralRe: Exception Handling Pin
Phanindra26116-Nov-12 8:03
Phanindra26116-Nov-12 8:03 
AnswerRe: Exception Handling Pin
Clifford Nelson16-Nov-12 9:49
Clifford Nelson16-Nov-12 9:49 
GeneralRe: Exception Handling Pin
Dave Kreskowiak16-Nov-12 11:49
mveDave Kreskowiak16-Nov-12 11:49 
AnswerRe: Exception Handling Pin
Orjan Westin16-Nov-12 4:37
professionalOrjan Westin16-Nov-12 4:37 
AnswerRe: Exception Handling Pin
SledgeHammer0116-Nov-12 9:55
SledgeHammer0116-Nov-12 9:55 
JokeRe: Exception Handling Pin
Mycroft Holmes16-Nov-12 15:42
professionalMycroft Holmes16-Nov-12 15:42 
AnswerRe: Exception Handling Pin
jschell17-Nov-12 6:20
jschell17-Nov-12 6:20 
QuestionManual Coding vs Code Generation Pin
Phanindra26116-Nov-12 0:22
Phanindra26116-Nov-12 0:22 

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.