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: 1822.62 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-05-26
[21:37]<aa-mggvjg>there was no msh
[21:37]<lnvnzxu>and a *much* better name
[21:38]<lnvnzxu>yeah, it wasn't in Beta 1 either i believe
[21:38]<lnvnzxu>older builds had it
[21:38]<aa-mggvjg>i found my vista beta pretty disappointing
[21:38]<aa-mggvjg>now back to win xp and ubuntu
[21:38]<lnvnzxu>can't believe that i installed Longhorn on some machines nearly 3 years ago now, and it's still not done
[21:39]<aa-mggvjg>heh
[21:39]<aa-mggvjg>and people are still not using linux (!!!)
[21:41]<2uc>is there something like sprintf?
[21:41]<lnvnzxu>String.Format
[21:41]<lnvnzxu>StringBuilder
[21:42]<2uc>hmpf. cannot convert from string to char*
[21:42]<lnvnzxu>this is C#, wrong channel?
[21:42]<2uc>[Task:File=/u01/workspace/Projects/Csharp/Poker/gpClient/ClientImpl.cs, Line=28, Column=37, Type=Error, Description=Cannot convert from `string' to `char*'(CS1503: Argument 1)
[21:42]<2uc>This is a C# error ;^)
[21:42]<lnvnzxu>why would you use character pointers?
[21:43]<2uc>I don't?
[21:43]<2uc>Try to set a label.
[21:43]<lnvnzxu>who wrote ClientImpl?
[21:43]<2uc>Gtk.Label that is.
[21:43]<lnvnzxu>oh
[21:44]<2uc>I did.
[21:44]<lnvnzxu>you'll likely have to marshal it to something, i've never used the Gtk bindings
[21:45]<2uc>loginScreen.InfoLabel = "foobar";
[21:45]<2uc>is working
[21:45]<2uc>. o O ( ?! )
[21:45]<lnvnzxu>and what doesn't, a System.String?
[21:46]<lnvnzxu>what's the type of the InfoLabel property?
[21:46]<2uc>string
[21:47]<2uc> public string InfoLabel {
[21:47]<2uc> set {
[21:47]<2uc> infoLabel.Text = value;
[21:47]<lnvnzxu>what's the line look with the error?
[21:47]<lnvnzxu>(like)
[21:48]<2uc>Seems to be the Gtk widget
[21:48]<2uc>infoLabel.Text = new string("foo!");
[21:48]<2uc>infoLabel is the widget
[21:48]<2uc>and that throws the error
[21:49]<wyfaj`>change it to infoLabel.Text = "foo!"
[21:49]<2uc>wilco`: I want something like "new string("Attempt #{0}, illegal login ...", ++illegalLoginCounter);"
[21:49]<wyfaj`>the error you get (can't convert from string to char*) is because the string ctor doesn't take strings - it does take things like char[] or char*
[21:50]<wyfaj`>so do string x = String.Format("Attempt #{0}, illegal login ...", ++illegalLoginCounter);
[21:51]<2uc>mmmh
[21:51]<2uc>thanks
[21:54]<2uc>wilco`: you have any clue how to control the tab order in a gtk window?
[21:54]<wyfaj`>check if theres a TabIndex property or something
[21:56]<2uc>mmh, nope
[22:14]<2uc>wilco`: FocusChain it is :)
[22:17]<fyfuym-syfggag>stupid question is there a way to dispose and arraylist
[22:17]<fyfuym-syfggag>and then recreated it
[22:17]<fyfuym-syfggag>ie arraylist myarraylist = new ....
[22:18]<fyfuym-syfggag>mya...add(someitem);
[22:18]<fyfuym-syfggag>myar..dispose();
[22:18]<fyfuym-syfggag>and then in the same method call arraylist myarraylist ....
[22:19]<2uc>does that just sound weird to me?
[22:20]<deeree>i think it's a trick question
[22:20]<fyfuym-syfggag>no not really
[22:20]<vynvyv>Liquid-Silence: you're not making sense
[22:20]<vynvyv>why would you need to do that?
[22:20]<fyfuym-syfggag>I am just sick of calling myarraylist.clear
[22:20]<fyfuym-syfggag>it pisses me off
[22:21]<vynvyv>do myarraylist = new ArrayList
[22:21]<txnjzd>implement ArrayList pooling!
[22:21]<fyfuym-syfggag>Theory was thinking about thaty
[22:21]<txnjzd>argh, that was meant to be sarcastic
[22:22]<aa-mggvjg>does class blahblah : blah mean class blahblah extends blah
[22:22]<aa-mggvjg>?
[22:22]<txnjzd>yes
[22:24]<aa-mggvjg>thx
[22:27]<mzvzzznz__>inherates from class blah
[22:27]<mzvzzznz__>it could also be an interface
[22:29]<lnvnzxu>one concrete type and N number of interfaces, where N >= 0
[22:30]<lnvnzxu>well, M concrete types, where M = 0 or 1
[22:31]<txnjzd>.
[22:33]<aa-mggvjg>and what i don't exactly get
[22:33]<aa-mggvjg>if i do
[22:33]<aa-mggvjg>int i = 1;
[22:33]<aa-mggvjg>is i then an object in c#?
[22:34]<txnjzd>it's a value type
[22:34]<txnjzd>well, an instance of a value type
[22:34]<txnjzd>it lives on the stack rather than the heap
[22:34]<aa-mggvjg>ah
[22:34]<aa-mggvjg>same as in java?
[22:34]<txnjzd>I'm not familiar with java
[22:35]<aa-mggvjg>heh
[22:36]<aa-mggvjg>is i extended from object?
[22:36]<mzvzzznz__>your confuising the guy even more
[22:36]<mzvzzznz__>what hi is saying that a Class can inherit from another class (just 1) and a bunch of interfaces (one or more);
[22:40]<aa-mggvjg>no that was clear (the guy == me?)
[22:41]<aa-mggvjg>but not if the int, char, float, etc were objects or not
[22:41]<aa-mggvjg>in java they are not
[22:41]<aa-mggvjg>and in python they are
[22:42]<aa-mggvjg>in python i can do things like this
[22:42]<aa-mggvjg>>>> i = -3
[22:42]<aa-mggvjg>>>> i.__abs__()
[22:42]<aa-mggvjg>3
[22:46]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[22:49]<mupmvz>so i have this png file that looks fine until i print it in crystal reports
[22:50]<mupmvz>at which time it shows it all pixely







