Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralProblems with WMP SDK/clip duration Pin
B Chase20-Jul-03 10:02
B Chase20-Jul-03 10:02 
GeneralRe: Problems with WMP SDK/clip duration Pin
B Chase20-Jul-03 12:19
B Chase20-Jul-03 12:19 
QuestionHow do you add printers to w2k adv. server using C# Pin
kenk_Csharp20-Jul-03 8:31
kenk_Csharp20-Jul-03 8:31 
General"move" files ... Pin
inkdman20-Jul-03 5:29
inkdman20-Jul-03 5:29 
Generalconnecting to a pop server Pin
inkdman20-Jul-03 4:54
inkdman20-Jul-03 4:54 
GeneralRe: connecting to a pop server Pin
Nick Parker20-Jul-03 5:36
protectorNick Parker20-Jul-03 5:36 
GeneralGet object property from running process Pin
Shaun Becker19-Jul-03 15:31
Shaun Becker19-Jul-03 15:31 
GeneralRe: Get object property from running process Pin
Rocky Moore19-Jul-03 23:41
Rocky Moore19-Jul-03 23:41 
Since it is different applications using different AppDomains, you will probably want to go with a remoting singleton object. That would allow you to share the single instance between the applications.

You could spin off an invisible WinApp UserData server module that will host your remote object. The UserData object could have a reference counter property to track how many client connections it currently has. When an application starts, if the UserData server is not in the proccess list, then it would start the UserData server, and call the UserData member to display and validate the login. Of course, if the server is already running then it does not do the login since the login has already occured and the UserData object will have your login instance.

After the server is confirmed to be running, the program that was launched would remote connect to the UserData object and increment the ref count. When a application is closing, it decay the ref counter by one and if it is zero, it would trigger the UserData server to close.

Rocky Moore <><
GeneralRe: Get object property from running process Pin
Shaun Becker20-Jul-03 4:04
Shaun Becker20-Jul-03 4:04 
GeneralRe: Get object property from running process Pin
Rocky Moore20-Jul-03 4:38
Rocky Moore20-Jul-03 4:38 
GeneralRe: Get object property from running process Pin
Shaun Becker21-Jul-03 14:40
Shaun Becker21-Jul-03 14:40 
GeneralRe: Get object property from running process Pin
Rocky Moore21-Jul-03 15:44
Rocky Moore21-Jul-03 15:44 
Generalemail Pin
civilwar19-Jul-03 12:08
civilwar19-Jul-03 12:08 
GeneralRe: email Pin
Rocky Moore19-Jul-03 16:48
Rocky Moore19-Jul-03 16:48 
GeneralRe: email Pin
Manster21-Jul-03 6:20
Manster21-Jul-03 6:20 
GeneralRe: email Pin
civilwar21-Jul-03 6:45
civilwar21-Jul-03 6:45 
Generalenumerating MSDE servers in C# using SQLDMO Pin
apferreira19-Jul-03 3:36
apferreira19-Jul-03 3:36 
GeneralRe: enumerating MSDE servers in C# using SQLDMO Pin
leppie19-Jul-03 4:34
leppie19-Jul-03 4:34 
GeneralRe: enumerating MSDE servers in C# using SQLDMO Pin
apferreira20-Jul-03 4:36
apferreira20-Jul-03 4:36 
GeneralRe: enumerating MSDE servers in C# using SQLDMO Pin
Bo Hunter20-Jul-03 11:37
Bo Hunter20-Jul-03 11:37 
GeneralRe: enumerating MSDE servers in C# using SQLDMO Pin
leppie21-Jul-03 6:59
leppie21-Jul-03 6:59 
Generalprinting windows forms Pin
misterbear19-Jul-03 2:02
misterbear19-Jul-03 2:02 
GeneralRe: printing windows forms Pin
pahluwalia9-Dec-03 11:48
pahluwalia9-Dec-03 11:48 
GeneralDrag and drop files Pin
Shree19-Jul-03 1:45
Shree19-Jul-03 1:45 
GeneralRe: Drag and drop files Pin
Rocky Moore19-Jul-03 16:45
Rocky Moore19-Jul-03 16:45 

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.