Click here to Skip to main content
15,916,693 members
Home / Discussions / C#
   

C#

 
GeneralRe: Restoring Previous Clipboard Data Pin
Heath Stewart25-Nov-04 19:44
protectorHeath Stewart25-Nov-04 19:44 
GeneralRe: Restoring Previous Clipboard Data Pin
Jay Shankar25-Nov-04 20:48
Jay Shankar25-Nov-04 20:48 
GeneralRe: Restoring Previous Clipboard Data Pin
Dennis C. Dietrich24-Nov-04 14:35
Dennis C. Dietrich24-Nov-04 14:35 
GeneralRe: Restoring Previous Clipboard Data Pin
Jay Shankar24-Nov-04 23:06
Jay Shankar24-Nov-04 23:06 
GeneralDynamic Classes and Intellisense Pin
tteta@visioncore.com24-Nov-04 13:00
tteta@visioncore.com24-Nov-04 13:00 
GeneralRe: Dynamic Classes and Intellisense Pin
leppie25-Nov-04 1:38
leppie25-Nov-04 1:38 
GeneralRe: Dynamic Classes and Intellisense Pin
Heath Stewart25-Nov-04 19:41
protectorHeath Stewart25-Nov-04 19:41 
General[Easy] Remoting Pin
Snowjim24-Nov-04 12:52
Snowjim24-Nov-04 12:52 
Hey

I have been looking into som article here on Codeproject about remoting.

There is some thing i dont understand realy.

I have tryed to make a object(from dll file) active(creat) by using remoting(SingleCall).

The client simes like it gets the object but its empty.(I know that the client is working)

How do i fill the object with info? I have tryed do creat the object on the server and add the info to it, but when the client request a remot obj it takes a new one.

I have thougt of writing the info in the dll file, but then i dont realy need the server to transfer it when all the info is already in the dll file on at the client. I could let the dll file open a file on the server an read info there but this dont simes right?

How do i let the server add information to the object that the client is geting info from?

Server Code:
hc = new HttpChannel(10034);
ChannelServices.RegisterChannel(hc); RemotingConfiguration.RegisterWellKnownServiceType(typeof(QuoteService.Quotes),"QuoteServer",WellKnownObjectMode.SingleCall);

Remote dll(QuoteService.Quotes):
Arraylist that stors objects of an other class(QuoteService.Quote) that also is : MarshalByRefObject

Client Code:
hc = new HttpChannel(); ChannelServices.RegisterChannel(hc);
QuoteService.Quotes quote;
Random ranobj = new Random();
quote = (QuoteService.Quotes)Activator.GetObject(typeof(QuoteService.Quotes),"http://localhost:10034/QuoteServer");

This problem is probely silly!

//Jimmy
GeneralRe: [Easy] Remoting Pin
Snowjim24-Nov-04 22:36
Snowjim24-Nov-04 22:36 
Generalquickest and easiest way to share data (C dll & .net dll) Pin
Anonymous24-Nov-04 11:03
Anonymous24-Nov-04 11:03 
GeneralRe: quickest and easiest way to share data (C dll & .net dll) Pin
Nick Parker24-Nov-04 11:08
protectorNick Parker24-Nov-04 11:08 
GeneralRe: quickest and easiest way to share data (C dll & .net dll) Pin
asaddsada24-Nov-04 11:53
sussasaddsada24-Nov-04 11:53 
Generalweb services update database using dataset Pin
Don Jonathan24-Nov-04 11:00
sussDon Jonathan24-Nov-04 11:00 
GeneralRe: web services update database using dataset Pin
Heath Stewart24-Nov-04 14:40
protectorHeath Stewart24-Nov-04 14:40 
Questiondynamic acces to class variables? Pin
TyronX24-Nov-04 8:25
TyronX24-Nov-04 8:25 
AnswerRe: dynamic acces to class variables? Pin
TyronX24-Nov-04 8:36
TyronX24-Nov-04 8:36 
GeneralRe: dynamic acces to class variables? Pin
DavidNohejl24-Nov-04 14:13
DavidNohejl24-Nov-04 14:13 
AnswerRe: dynamic acces to class variables? Pin
Heath Stewart24-Nov-04 8:55
protectorHeath Stewart24-Nov-04 8:55 
GeneralDoubleClick Event on a Label Pin
mlamb24-Nov-04 7:49
mlamb24-Nov-04 7:49 
GeneralRe: DoubleClick Event on a Label Pin
Heath Stewart24-Nov-04 8:44
protectorHeath Stewart24-Nov-04 8:44 
Generalproblem with GraphicsPath Pin
bernd.salewski24-Nov-04 7:49
bernd.salewski24-Nov-04 7:49 
GeneralRe: problem with GraphicsPath Pin
Heath Stewart24-Nov-04 9:01
protectorHeath Stewart24-Nov-04 9:01 
GeneralRe: problem with GraphicsPath Pin
bernd.salewski24-Nov-04 9:14
bernd.salewski24-Nov-04 9:14 
GeneralRe: problem with GraphicsPath Pin
Heath Stewart24-Nov-04 10:06
protectorHeath Stewart24-Nov-04 10:06 
GeneralRe: problem with GraphicsPath Pin
bernd.salewski24-Nov-04 10:51
bernd.salewski24-Nov-04 10:51 

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.