Click here to Skip to main content
15,924,679 members
Home / Discussions / C#
   

C#

 
Questionplz Help Pin
IrfanHaleem9-May-07 21:48
IrfanHaleem9-May-07 21:48 
AnswerRe: plz Help Pin
Rajesh R Subramanian9-May-07 21:56
professionalRajesh R Subramanian9-May-07 21:56 
AnswerRe: plz Help Pin
Vikram A Punathambekar9-May-07 22:14
Vikram A Punathambekar9-May-07 22:14 
QuestionXML Parsing C# Pin
satsumatable9-May-07 21:46
satsumatable9-May-07 21:46 
AnswerRe: XML Parsing C# Pin
DavidNohejl9-May-07 22:07
DavidNohejl9-May-07 22:07 
QuestionSelectAll - not working on a maskededitbox [modified] Pin
tcss9-May-07 21:35
tcss9-May-07 21:35 
AnswerRe: SelectAll - not working on a maskededitbox Pin
tcss10-May-07 0:44
tcss10-May-07 0:44 
QuestionNEED HELP c# remoting need remotable class to use server's class's function Pin
neodeaths9-May-07 21:26
neodeaths9-May-07 21:26 
hi i am currently using c#.net to do remoting

i am basically trying to make a project whereby when the client changes the values of the remotable object a function in the main class would execute.

my remotable class is in a class library

i am currently trying to make one of the remotable class object call one of the main class's function

so far all my attempts fail:
i tryed using delegate <==cant as the classes not same file the remotable class dont regconize some of the classes

event handler <== cant as some error keep coming up asking me to serialize the class and when i serialise the class another error pop's up saying that the security is not there to deserialise.

PLEASE HELP ME I AM DESPO

codes i have so far:<br />
static void Main(string[] args)<br />
        {<br />
            // Register channel<br />
            HttpChannel channel = new HttpChannel(8080);<br />
            ChannelServices.RegisterChannel(channel, false);<br />
<br />
            // Register MyRemoteObject<br />
           RemotingConfiguration.RegisterWellKnownServiceType(<br />
                typeof(MyRemoteType),<br />
                "MyRemoteObject",<br />
                WellKnownObjectMode.Singleton);<br />
                //WellKnownObjectMode.SingleCall);<br />
<br />
           MyRemoteType MyRemoteClass = (MyRemoteType)Activator.GetObject(<br />
   typeof(MyRemoteType),<br />
   "http://localhost:8080/MyRemoteObject");<br />
           MyRemoteClass.setsvalue("hihi");<br />
           Console.WriteLine(MyRemoteClass.returnstring());<br />
     <br />
<br />
<br />
            Console.WriteLine("Press enter to stop this process.");<br />
            Console.ReadLine();

QuestionHow to restart the program after a function? Pin
Missy Glory9-May-07 21:12
Missy Glory9-May-07 21:12 
AnswerRe: How to restart the program after a function? Pin
Martin#9-May-07 21:20
Martin#9-May-07 21:20 
GeneralRe: How to restart the program after a function? Pin
Missy Glory9-May-07 21:33
Missy Glory9-May-07 21:33 
GeneralRe: How to restart the program after a function? Pin
Martin#9-May-07 21:38
Martin#9-May-07 21:38 
AnswerRe: How to restart the program after a function? Pin
Leyu10-May-07 2:15
Leyu10-May-07 2:15 
QuestionCalling Form Twice Pin
gvanto9-May-07 20:31
gvanto9-May-07 20:31 
AnswerRe: Calling Form Twice Pin
sam#9-May-07 20:52
sam#9-May-07 20:52 
GeneralRe: Calling Form Twice Pin
gvanto9-May-07 21:24
gvanto9-May-07 21:24 
AnswerRe: Calling Form Twice Pin
Martin#9-May-07 21:37
Martin#9-May-07 21:37 
GeneralRe: Calling Form Twice Pin
gvanto10-May-07 1:23
gvanto10-May-07 1:23 
GeneralRe: Calling Form Twice Pin
Martin#10-May-07 1:26
Martin#10-May-07 1:26 
Questionanimated picture in form Pin
sujithkumarsl9-May-07 20:28
sujithkumarsl9-May-07 20:28 
AnswerRe: animated picture in form Pin
Martin#9-May-07 21:43
Martin#9-May-07 21:43 
GeneralRe: animated picture in form Pin
sujithkumarsl9-May-07 22:17
sujithkumarsl9-May-07 22:17 
QuestionPlzz Help in this program Pin
IrfanHaleem9-May-07 20:22
IrfanHaleem9-May-07 20:22 
AnswerRe: Plzz Help in this program Pin
sam#9-May-07 21:03
sam#9-May-07 21:03 
AnswerRe: Plzz Help in this program [modified] Pin
Guffa9-May-07 21:13
Guffa9-May-07 21:13 

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.