Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
QuestionRe: Execute a *.bat file in C# project Pin
CodingLover24-Feb-09 0:07
CodingLover24-Feb-09 0:07 
AnswerRe: Execute a *.bat file in C# project Pin
ABitSmart24-Feb-09 0:29
ABitSmart24-Feb-09 0:29 
NewsRe: Execute a *.bat file in C# project Pin
CodingLover24-Feb-09 0:42
CodingLover24-Feb-09 0:42 
GeneralRe: Execute a *.bat file in C# project Pin
ABitSmart24-Feb-09 0:45
ABitSmart24-Feb-09 0:45 
NewsRe: Execute a *.bat file in C# project Pin
CodingLover24-Feb-09 1:32
CodingLover24-Feb-09 1:32 
QuestionRetrieve Images from Databse Pin
Najmal23-Feb-09 21:34
Najmal23-Feb-09 21:34 
AnswerRe: Retrieve Images from Databse Pin
Mycroft Holmes23-Feb-09 21:53
professionalMycroft Holmes23-Feb-09 21:53 
QuestionPipes! and they aint for smoke'n Pin
Mel Feik23-Feb-09 21:16
Mel Feik23-Feb-09 21:16 
Having been kicked out of the basement yet again to develop a little something in the "higher" level code I'm muddling around in the dark and trying to look bright doing it.

I need to create a service that will launch mulitple instances of an application (APP) and be able to have some interaction with each APP as well as the service itself (via a serperate application to be developed later - which will be mostly used to add/remove APPs).

Just to get the blood flowing, and something started on my desktop, I came up with this little mess...
Process[] p = new Process[portsAL.Count];
NamedPipeServerStream[] pipeServer = new NamedPipeServerStream[portsAL.Count];
for (int i = 0; i < portsAL.Count; i++)
{
   p[i] = new Process();
   p[i].StartInfo.FileName = appPath;
   p[i].StartInfo.Arguments = portsAL[i].ToString();
   p[i].Start();
   pipeServer[i] = new NamedPipeServerStream("pipe" + portsAL[i].ToString(), PipeDirection.InOut);
   pipeServer[i].WaitForConnection();
}


While that actually works (put in a bit-o-code into APP and each instance reported in on its assigned pipe) I will be the first to agree [admit] its not very elegant and I suspect its going to lead to my doing alot more work than my inheritently lazy nature will appreciate. Also, it became clear rather abruptly just how cumbersome it was going to become if I went much farther along these lines.
Soooo..... here I am humbly seeking the wisdom of my betters to give me a shove in the right direction.

---------------------------------------------
Help... I'm embedded and I can't get out!

If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler

AnswerRe: Pipes! and they aint for smoke'n Pin
Rob Philpott23-Feb-09 22:07
Rob Philpott23-Feb-09 22:07 
GeneralRe: Pipes! and they aint for smoke'n Pin
Mel Feik24-Feb-09 5:59
Mel Feik24-Feb-09 5:59 
QuestionHow to use user-defined-type input and output parameters in Oracle Function using ODP.NET Pin
AnilJayanti23-Feb-09 21:14
AnilJayanti23-Feb-09 21:14 
AnswerRe: How to use user-defined-type input and output parameters in Oracle Function using ODP.NET Pin
Nagy Vilmos23-Feb-09 22:03
professionalNagy Vilmos23-Feb-09 22:03 
AnswerRe: How to use user-defined-type input and output parameters in Oracle Function using ODP.NET Pin
ABitSmart23-Feb-09 22:07
ABitSmart23-Feb-09 22:07 
GeneralRe: How to use user-defined-type input and output parameters in Oracle Function using ODP.NET Pin
AnilJayanti23-Feb-09 22:40
AnilJayanti23-Feb-09 22:40 
GeneralRe: How to use user-defined-type input and output parameters in Oracle Function using ODP.NET Pin
ABitSmart23-Feb-09 22:57
ABitSmart23-Feb-09 22:57 
GeneralRe: How to use user-defined-type input and output parameters in Oracle Function using ODP.NET Pin
AnilJayanti23-Feb-09 23:07
AnilJayanti23-Feb-09 23:07 
QuestionHow to place dropdownlist in the header of the calender control Pin
P G Kishore23-Feb-09 21:11
P G Kishore23-Feb-09 21:11 
AnswerRe: How to place dropdownlist in the header of the calender control Pin
Deresen23-Feb-09 21:56
Deresen23-Feb-09 21:56 
AnswerRe: How to place dropdownlist in the header of the calender control Pin
Nagy Vilmos23-Feb-09 21:59
professionalNagy Vilmos23-Feb-09 21:59 
Questionenable vista syle application in c# Pin
Abdul Rahman Hamidy23-Feb-09 20:56
Abdul Rahman Hamidy23-Feb-09 20:56 
AnswerRe: enable vista syle application in c# Pin
Greg Chelstowski23-Feb-09 21:31
Greg Chelstowski23-Feb-09 21:31 
QuestionCalculate length of textBox for N number of characters Pin
kanchoette23-Feb-09 20:54
kanchoette23-Feb-09 20:54 
AnswerRe: Calculate length of textBox for N number of characters Pin
Mel Feik23-Feb-09 21:38
Mel Feik23-Feb-09 21:38 
AnswerRe: Calculate length of textBox for N number of characters Pin
Rob Philpott23-Feb-09 22:02
Rob Philpott23-Feb-09 22:02 
AnswerRe: Calculate length of textBox for N number of characters Pin
ABitSmart23-Feb-09 22:14
ABitSmart23-Feb-09 22:14 

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.