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.40 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-09-04
[01:54]<vjnv0z>nah :( i just never wrote anything other than for work that people might use
[01:54]<jusvygc>hmmm
[01:54]<vjnv0z>so i want people to use it
[01:54]<vjnv0z>hehe
[01:54]<jusvygc>who wants to write an IRC bot in C#?
[01:55]<vjnv0z>there was someone in here not to long ago that was doing that
[01:55]<dyvaxnfja>yea thats it, a rootkit + a everything needed for a botnet written in c#
[01:55]<dyvaxnfja>and i thought i was pushing it with my IE and Taskbar plugins haha
[01:56]<jusvygc>hmmm
[01:56]<dyvaxnfja>toNt0r: wooo, your code compiled just fine....now hopefully I'll remember to test it.....later
[01:56]<jusvygc>I could probably get a bot in here without too much difficulty
[01:56]<vjnv0z>good to hear :)
[01:57]<dyvaxnfja>anyone here work for vmware? if so yell at them for me, i'm freaking pissed
[01:57]<jusvygc>I'll call it SharpDrop :P
[01:57]<jusvygc>well
[01:57]<jusvygc>I'll test your program if you test mine, toNt0r
[01:57]<jusvygc>one of the things I'm working on is a flashcard program
[01:57]<jusvygc>just displays the front and back of arbitrary flashcards
[01:58]<jusvygc>for learning shit
[01:58]<jusvygc>deal? :D
[01:58]<dyvaxnfja>Does it use IPC?
[01:58]<jusvygc>no
[01:58]<jusvygc>it just reads an XML file from disk
[01:58]<dyvaxnfja>Then I don't want to test it
[01:58]<jusvygc>wanna try it? :D
[01:58]<jusvygc>I can make it use IPC if you want.
[01:59]<dyvaxnfja>Do it and I'll reconsider ;)
[01:59]<jusvygc>We can even write a protocol
[01:59]<jusvygc>Flashcard Server and Flashcard Client
[01:59]<jusvygc>sounds awesome huh?
[01:59]<dyvaxnfja>whY? use the IRC server
[01:59]<dyvaxnfja>and send privmsg's between them
[01:59]<jusvygc>haha
[01:59]<jusvygc>FlashcardBot
[02:01]<jusvygc>hmm, I forget
[02:01]<jusvygc>how do you display a message box?
[02:02]<dyvaxnfja>Console.WriteLine("asdfa");
[02:02]<dyvaxnfja>Console.ReadLine();
[02:02]<fz1dbz>JustinC maybe the bytes arent aligned because the infos about that packet are kinda wrong hehe
[02:02]<jusvygc>I mean MessageBox() in WinApi
[02:02]<jdvgdjgcgd>MessageBox.Show( "Foobar!" );
[02:02]<jusvygc>ah, MessageBox.Show .. right. thanks Jivemonkey
[02:02]<dyvaxnfja>You didn't define "message box" =P
[02:03]<jusvygc>mitcheloc: It's part of the WinForms library
[02:03]<jusvygc>Jivemonkey: You know who I am right ;P
[02:03]<jdvgdjgcgd>yeah
[02:03]<jdvgdjgcgd>xiph
[02:03]<jusvygc>o ok :P I'm surprised you'd help me then
[02:03]<jdvgdjgcgd>why's that?
[02:03]<jusvygc>because you don't like me
[02:03]<jdvgdjgcgd>i'm surprised you'd forget
[02:03]<jusvygc>I dont have a good memory
[02:03]<jdvgdjgcgd>i can help you, i just wont date you anymore
[02:03]<jusvygc>oh ok
[02:04]<jusvygc>well just dont tell me about your other lays and it will work out
[02:04]<jdvgdjgcgd>deal
[02:04]<jusvygc>hmmm
[02:04]<dyvaxnfja>What, he can't talk about me?
[02:04]<jusvygc>how do you make a variable in C# have the name of a keyword?
[02:04]<jusvygc>like if I want to name a variable "short" (to interact with another .NET lang)
[02:04]<jusvygc>there's some method to do that, I forget what it is
[02:05]<dyvaxnfja>why would you do that?
[02:05]<jusvygc>because another .NET language has declared an object by that name
[02:05]<jusvygc>maybe C# doesn't have a way... I'm pretty sure VB does. anyone know?
[02:05]<dyvaxnfja>still, why do you have to use the *same* name?
[02:06]<jusvygc>because it's a public property
[02:06]<jusvygc>short is not a keyword in other languages, right?
[02:06]<jusvygc>so what if some other language declares:
[02:06]<dyvaxnfja>well, i'm not clear still, but try accessing it directly
[02:06]<jusvygc>public interface I { public int short { get; } }
[02:06]<jusvygc>that might be legal in some other .NET lang
[02:06]<dyvaxnfja>OtherNamespace.Short asdf = new OtherNamespace.Short();
[02:06]<jusvygc>but C# can't access it
[02:06]<dyvaxnfja>you have to use the FQDN
[02:06]<jusvygc>because short is a keyword that is not legal as amember
[02:06]<jusvygc>there is some convention or special way to declare variables
[02:07]<jdvgdjgcgd>i didnt know you could do that in c#
[02:07]<jusvygc>you can't normally. but there's some special convention (compare to @ before strings) for making variables of bad names
[02:07]<dyvaxnfja>i'm totally missing the point of why you would want to do that....
[02:07]<jdvgdjgcgd>so he can use the freakin class in his c# app
[02:07]<jusvygc>I already told you, to interact with a library that already exists
[02:08]<jusvygc>Premise: Some code already exists that uses a name that's not legal in C#
[02:08]<jusvygc>Premise make sense?
[02:08]<jusvygc>Remember, .NET Is a platform, and not many C# keywords are also keywords in other languages
[02:08]<jusvygc>.NET has no problems with a class named "interface" or a variable named "short", get it?
[02:08]<dyvaxnfja>well to use the freaking class i told him to use the fully qualified name, so obviously thats not it?
[02:08]<jusvygc>it's only C# that has that problem
[02:08]<jusvygc>what does that mean, fully qualified name?
[02:09]<jusvygc>that doesn't solve the problem if I understand you correctly
[02:09]<fz1dbz>fully qualified domain name
[02:09]<dyvaxnfja>instead of MessageBox.Show, you use System.Windows.Forms.MessageBox.Show
[02:09]<jusvygc>....
[02:09]<jusvygc>that's not legal
[02:09]<jusvygc>the name of the member is illegal in C# because it's a keyword
[02:09]<jusvygc>class C { int short; } // this is not legal C#
[02:09]<jusvygc>full qualification doesn't change that
[02:11]<jusvygc>I'll ask someone on the C# compiler team -- he'll know..
[02:17]<dyvaxnfja>JustinC: is SharpDrop done?
[02:20]<jdvgdjgcgd>whats sharpdrop







