IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-11
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Next >
[09:21]<fjfyvr>how can i execute aplication with '>' (redirecting output) in c# ?
[09:22]<rfmmrwvmfmruwrjm>...
[09:22]<rfmmrwvmfmruwrjm>thats handled by windows
[09:22]<fjfyvr>when i try to redirect standard output to my aplication console it lags \:
[09:22]<rfmmrwvmfmruwrjm>it redirects Console.Out
[09:23]<fjfyvr>Hmm but how to set Console.Out for external aplication (System.Diagnostics.Process) and not main window console? Sorry for probably stupid question
[09:24]<rfmmrwvmfmruwrjm>well, as i understand the '>' operator takes and sets one programs Console.Out to the other's Console.In
[09:26]<`d0>nods
[09:26]<rfmmrwvmfmruwrjm>...
[09:26]<rfmmrwvmfmruwrjm>try the "|" operator
[09:26]<rfmmrwvmfmruwrjm>i think thats more correct
[09:26]<`d0>"kryyyptoniiiite" heh
[09:26]<fjfyvr>eh?
[09:26]<rfmmrwvmfmruwrjm>">" is intended for file output
[09:26]<fjfyvr>yes
[09:26]<fjfyvr>exactly
[09:27]<rfmmrwvmfmruwrjm>the | command pipes data
[09:27]<fjfyvr>i want to save output of external aplication to file
[09:27]<rfmmrwvmfmruwrjm>oh, well, then, you can always design your code to set Console.Out to a FileStream
[09:27]<fjfyvr>and i can;t use procInfo.UseShellExecute = false; procInfo.RedirectStandardOutput = true;
[09:28]<fjfyvr>hmm ...
[09:28]<rfmmrwvmfmruwrjm>try in the first line of code .... Console.Out = new FileStream(...)
[09:28]<rfmmrwvmfmruwrjm>see if that works
[09:28]<rfmmrwvmfmruwrjm>(it should)
[09:29]<fjfyvr>But it will redirect output of MY aplication and not aplication which i am starting in the program \:
[09:29]<rfmmrwvmfmruwrjm>OH!
[09:30]<rfmmrwvmfmruwrjm>hmm
[09:30]<fjfyvr>exactly ):
[09:32]<rfmmrwvmfmruwrjm>aha
[09:32]<rfmmrwvmfmruwrjm>Process has a member StandardOutput
[09:32]<rfmmrwvmfmruwrjm>its a stream reader
[09:33]<fjfyvr>i know
[09:34]<fjfyvr>when i use it and then i use proc.waitforexist it hangs up and waits for exit for ethernity
[09:34]<fjfyvr>*WaitForExit
[09:35]<rfmmrwvmfmruwrjm>did you attach the StandardOutput.BaseStream property or how did you "use" it
[09:35]<vxznrm>mornin
[09:36]<`d0>moringin
[09:38]<fjfyvr>almightylinuxgod, http://www.rafb.net/paste/results/QoXdQ433.html
[09:40]<fjfyvr>i think that somthing like wait 1 minute and if proc.waitforexit will no happen, then kill it, but somehow i don't know how to do it
[09:40]<rfmmrwvmfmruwrjm>and it hangs on "WaitForExit"?
[09:40]<fjfyvr>almightylinuxgod, exactly
[09:40]<rfmmrwvmfmruwrjm>does the program your executing go "Press any key to continue"?
[09:41]<fjfyvr>no omg im not that stupid (:
[09:41]<rfmmrwvmfmruwrjm>btw, to wait one minute you do this: WaitForExit(60000);
[09:41]<fjfyvr>lol
[09:41]<fjfyvr>ok
[09:41]<rfmmrwvmfmruwrjm>it will time out eventualy
[09:42]<fjfyvr>I AM that stupid ((:
[09:42]<fjfyvr>not looked for that timeout feature
[09:42]<fjfyvr>omg
[09:42]<fjfyvr>kill me
[09:42]<rfmmrwvmfmruwrjm>;-)
[09:42]<fjfyvr>with fire
[09:42]<rfmmrwvmfmruwrjm>it will be ok
[09:43]<rfmmrwvmfmruwrjm>most wait methods provide a timeout override
[09:43]<fjfyvr>anyway i still can't figure why it hangs up on that computer and snac every other witouth problem and i get output
[09:58]<wupp9>moin
[09:58]<wupp9>how to reference the object I inherit from?
[10:00]<zgzzcygnv>you dont inherit from an object
[10:00]<zgzzcygnv>you inherit from a type
[10:00]<wupp9>yeah..
[10:00]<zgzzcygnv>a type != object
[10:00]<wupp9>sure
[10:01]<wupp9>but how do I reference it?
[10:01]<zgzzcygnv>public class MyClass : MyBaseClass
[10:02]<wupp9>I think it's `parent' in java, but what in c#?
[10:02]<zgzzcygnv>base
[10:02]<zgzzcygnv>this.Something(); base.Something();
[10:02]<wupp9>thanks :)
[10:06]<pzggjgg1000>It's 'super' in java, btw.
[10:21]<pz2>ok, I got my webserver setup, and aspx is recognized...
[10:22]<pz2><p><esponse.Write(now())%></p> is giving me a big nasty 500 error though
[10:22]<pz2>stupid irc
[10:23]<pz2><p><%Response.Write(now())%></p> is giving me a big nasty 500 error though (if it didn't come through last time)
[10:25]<pz2>The name `now' does not exist in the context of `ASP.index_aspx'
[10:25]<cxrfnm>what is now ?
[10:26]<cxrfnm>DateTime.Now ?
[10:26]<pz2>I think that's what they meant, but the docs I have seem to suck a lot
[10:27]<pz2><p><%Response.Write(DateTime.Now);%></p> works a charm
[10:27]<cxrfnm>frb-away, thanks
[10:27]<cxrfnm>:)
[10:28]<pz2-rwrd>so now I have a working webserver with userdir and .NET on my linux box
[10:28]<pz2-rwrd>I can start really learning .NET for web tomorrow
[10:28]<cxrfnm>nice
[10:40]<sdscr>Hi, I have something like this: macString = string.Format("{0}-{1}-{2}-{3}-{4}-{5}", m[0].ToString("X"), m[1].ToString("X"), m[2].ToString("X"), m[3].ToString("X"), m[4].ToString("X"), m[5].ToString("X")); Hot can I get leading zeros in if the Hex aint 2 digets?
[10:40]<czlvzyrmjzrzr>cuz Im running into VB only.. how do I adjust it for C# ?
[10:41]<sdscr>So the format would be something like "xx-xx-xx-xx-xx-xx" and not sometimes "x-x-x-xx-xx-x"
[10:41]<mj-c>use Reflector by Lutz Roeder
[10:41]<czlvzyrmjzrzr>Reflector?
[10:41]<mj-c>it does it automagically for you, converting your vb.net to c#, especially if you install plugins
[10:42]<mj-c>.net reflector (key words for google.com)
[10:42]<czlvzyrmjzrzr>doesn't make sense...
[10:43]<czlvzyrmjzrzr>fine it converts.. but how do I specifically make it a c# program or maybe convert it?
[10:43]<mj-c>you look at the vb.net assembly, and see the desassembled VB.NET code or C# code, using option menu
[10:47]<czlvzyrmjzrzr>im looking at assemblyinfo.vb for a program... that the correct assembly you mention?
[10:47]<mj-c>anybody knows some irc channels dedicated to ms exams (especially the new ones, like 70-536 and such)?
[10:47]<mj-c>no, assembly has *.dll
[10:47]<mj-c>after compilation
[10:48]<mj-c>if you're in vs2003, compile your vb.net code, and inside /bin/ you get your *.dll assembly







