Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
Questionneed help [modified] Pin
YiXiang_897-Mar-09 21:20
YiXiang_897-Mar-09 21:20 
AnswerRe: need help Pin
ABitSmart7-Mar-09 23:27
ABitSmart7-Mar-09 23:27 
QuestionInvoking external application? Pin
zaki_82790257-Mar-09 19:33
zaki_82790257-Mar-09 19:33 
AnswerRe: Invoking external application? Pin
Ravi Bhavnani7-Mar-09 19:44
professionalRavi Bhavnani7-Mar-09 19:44 
AnswerRe: Invoking external application? Pin
sohighthesky8-Mar-09 4:39
sohighthesky8-Mar-09 4:39 
Questiondatagrideview Pin
sevda207-Mar-09 19:21
sevda207-Mar-09 19:21 
AnswerRe: datagrideview Pin
vinodkrebc7-Mar-09 21:42
vinodkrebc7-Mar-09 21:42 
QuestionRemoting in .NET 2.0 - still not getting it! Pin
caix7-Mar-09 16:30
caix7-Mar-09 16:30 
Hey all,

I hope someone can point me in the right direction, if im in the wrong place please let me know - didn't want to post in the WCF forum as this is still the old version 2.0 remoting.

I have created a remoting object - although it still looks really limited - however i still don't get the 'why' of remoting.

In this case i thought that remoting would be the correct way to get my service to communicate with a UI.

I have written a UI, it starts up as a separate client (with lets call it UIConsoleInterface), and instantiates a object (lets call it UIConsole) in the server menory/process/etc space.

The issue i have must be simple as no one actaully talks about the bit that is confusing me.

When the object is created in the server (UIConsole)it is created as a singleton - but it is started on demand from the client. This means that i can't initialise variables etc in the object as my application has no idea that is has been created (right?)

The issue is that the UI is state dependent - it needs to know what is going on in the service, all examples i've seen just work with data created during the constructor of the remotable object.

The only way round this that i can see is to create a static object that my UIConsole object can call to get data from the application - this seems really very messy.

I also have tried to create a local UIConsole object during the server startup - this involves activators and unwrapping the object - but even then when my client connects it creates a second instance of UIConsole.

So first question - What's the best way to get a service to communicate (2-way) with a UI
Second question - what is the official/best practices way to tie a remotable object to local data on your server?

Or should i just get over it and use the static object as my bridge between the service data and the local remotable object?

Any help appreciated!
AnswerRe: Remoting in .NET 2.0 - still not getting it! Pin
aviadqwerty8-Mar-09 5:44
aviadqwerty8-Mar-09 5:44 
QuestionChange fore color of datetimepicker Pin
trinm19877-Mar-09 16:09
trinm19877-Mar-09 16:09 
AnswerRe: Change fore color of datetimepicker Pin
DaveyM698-Mar-09 0:53
professionalDaveyM698-Mar-09 0:53 
AnswerForeColor and BackColor Pin
DaveyM698-Mar-09 2:20
professionalDaveyM698-Mar-09 2:20 
Questionproblem with datagrid Pin
Shuaib wasif khan7-Mar-09 10:16
Shuaib wasif khan7-Mar-09 10:16 
AnswerRe: problem with datagrid Pin
Xmen Real 7-Mar-09 14:24
professional Xmen Real 7-Mar-09 14:24 
AnswerRe: problem with datagrid Pin
sohighthesky8-Mar-09 4:57
sohighthesky8-Mar-09 4:57 
Questionbluetooth functionality using franson bluetools (Pocket PC) [modified] Pin
Yanal_Adham7-Mar-09 8:58
Yanal_Adham7-Mar-09 8:58 
AnswerRe: bluetooth functionality using franson bluetools (Pocket PC) Pin
DaveyM697-Mar-09 10:22
professionalDaveyM697-Mar-09 10:22 
QuestionArray Sort Pin
mehdy_1377-Mar-09 8:43
mehdy_1377-Mar-09 8:43 
AnswerRe: Array Sort Pin
fly9047-Mar-09 8:57
fly9047-Mar-09 8:57 
AnswerRe: Array Sort [modified] Pin
harold aptroot7-Mar-09 8:59
harold aptroot7-Mar-09 8:59 
QuestionClick images with webcam using c# Pin
Umangj7-Mar-09 8:26
Umangj7-Mar-09 8:26 
AnswerRe: Click images with webcam using c# Pin
DaveyM697-Mar-09 10:26
professionalDaveyM697-Mar-09 10:26 
GeneralRe: Click images with webcam using c# Pin
Umangj7-Mar-09 10:29
Umangj7-Mar-09 10:29 
GeneralRe: Click images with webcam using c# Pin
DaveyM697-Mar-09 11:20
professionalDaveyM697-Mar-09 11:20 
AnswerRe: Click images with webcam using c# Pin
Eddy Vluggen8-Mar-09 2:35
professionalEddy Vluggen8-Mar-09 2:35 

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.