Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Pin
PIEBALDconsult28-Mar-14 8:19
mvePIEBALDconsult28-Mar-14 8:19 
GeneralRe: C# Pin
thatraja30-Mar-14 23:34
professionalthatraja30-Mar-14 23:34 
AnswerRe: C# Pin
Dave Kreskowiak28-Mar-14 9:38
mveDave Kreskowiak28-Mar-14 9:38 
GeneralRe: C# Pin
PIEBALDconsult31-Mar-14 3:48
mvePIEBALDconsult31-Mar-14 3:48 
GeneralRe: C# Pin
Dave Kreskowiak31-Mar-14 4:46
mveDave Kreskowiak31-Mar-14 4:46 
QuestionHow to use callbacks in remoting in .Net(c#) Pin
smit_a28-Mar-14 2:58
smit_a28-Mar-14 2:58 
AnswerRe: How to use callbacks in remoting in .Net(c#) Pin
alberich12328-Mar-14 3:24
alberich12328-Mar-14 3:24 
AnswerRe: How to use callbacks in remoting in .Net(c#) Pin
BobJanova31-Mar-14 0:46
BobJanova31-Mar-14 0:46 
Your problem is that you are binding the delegate to a method in a Client assembly class. That means that the code that tries to call it needs to know about that assembly, which is obviously bad.

In this situation when you're passing the delegate to a method which calls it directly, you can use an interface instead:

SharedAssembly:
interface IStringMessageRecipient {
 void ProcessMessage(string s);
}

class Class1 {
 public void SelectWithClassDialog(string msg, IStringMessageRecipient messageRecipient, string title) {
  // ...
  messageRecipient.ProcessMessage("did " + title); // or whatever s_notify is doing
}


Client:
class Client : IStringMessageRecipient {
 IStringMessageRecipients.ProcessMessage(String s) {
  Console.WriteLine("Inside callback");
  Console.WriteLine(s);
 }
}


PS please use <pre> tags for code blocks.
GeneralRe: How to use callbacks in remoting in .Net(c#) Pin
smit_a1-Apr-14 1:00
smit_a1-Apr-14 1:00 
GeneralRe: How to use callbacks in remoting in .Net(c#) Pin
BobJanova1-Apr-14 1:20
BobJanova1-Apr-14 1:20 
QuestionHow to use TreeView for getting values from database in Sales form Pin
H@ck_N_Cr@ck27-Mar-14 21:18
H@ck_N_Cr@ck27-Mar-14 21:18 
AnswerRe: How to use TreeView for getting values from database in Sales form Pin
Richard MacCutchan28-Mar-14 0:24
mveRichard MacCutchan28-Mar-14 0:24 
QuestionC# Winform Application With MySql as Database Deployement Pin
ahmed_one27-Mar-14 19:34
ahmed_one27-Mar-14 19:34 
AnswerRe: C# Winform Application With MySql as Database Deployement Pin
V.28-Mar-14 0:37
professionalV.28-Mar-14 0:37 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
ahmed_one28-Mar-14 1:24
ahmed_one28-Mar-14 1:24 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
V.28-Mar-14 1:33
professionalV.28-Mar-14 1:33 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
ahmed_one28-Mar-14 1:42
ahmed_one28-Mar-14 1:42 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
V.28-Mar-14 2:12
professionalV.28-Mar-14 2:12 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
ahmed_one28-Mar-14 2:28
ahmed_one28-Mar-14 2:28 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
V.28-Mar-14 2:31
professionalV.28-Mar-14 2:31 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
ahmed_one28-Mar-14 2:49
ahmed_one28-Mar-14 2:49 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
V.28-Mar-14 2:57
professionalV.28-Mar-14 2:57 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
ahmed_one28-Mar-14 3:02
ahmed_one28-Mar-14 3:02 
GeneralRe: C# Winform Application With MySql as Database Deployement Pin
V.28-Mar-14 3:03
professionalV.28-Mar-14 3:03 
QuestionUserControl Selection Pin
Railroadguy27-Mar-14 8:33
Railroadguy27-Mar-14 8:33 

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.