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.58 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-05-25
[22:00]<gjrvcxnne>Win32 API
[22:01]<aa-mggvjg>i'm on mono
[22:01]<gjrvcxnne>ah
[22:01]<gjrvcxnne>not sure then really
[22:02]<gjrvcxnne>i've always used the win32 api call...
[22:02]<rxrcr>I haven't done much in terms of performance timing, but you can get the current time in #of ticks from System.DateTime.Now.Ticks
[22:03]<fyfuym-syfggag>GoatCheez !!!!!!!!!
[22:03]<fyfuym-syfggag>gaf
[22:04]<gjrvcxnne>whats up
[22:04]<fyfuym-syfggag>nm man
[22:04]<fyfuym-syfggag>fixing bugs
[22:04]<gjrvcxnne>lol
[22:05]<gjrvcxnne>ah, tru tru
[22:05]<fyfuym-syfggag>I hate it
[22:05]<aa-mggvjg>oh thx
[22:05]<aa-mggvjg>what a path System.DateTime.Now.Ticks
[22:05]<fyfuym-syfggag>and I need to redesign a fucking screen
[22:07]<azyfm>System.Diagnostics.PerformanceCounter wraps QueryPerformanceCounter
[22:08]<aa-mggvjg>args[0] is argv[0] in c#?
[22:08]<fyfuym-syfggag>I always args with my boss
[22:08]<aa-mggvjg>heh
[22:08]<afd>Liquid-Silence: !!
[22:08]<afd>gn you all!
[22:09]<nvzzfzsv>jc-denton: no actually.
[22:09]<nvzzfzsv>argv[0] gets put somewhere else. somewhere in System.Environment I think.
[22:09]<aa-mggvjg>i mean like argv in c
[22:16]<aa-mggvjg>i just wrote an app to calculate pi so far in c#
[22:16]<aa-mggvjg>i need some good examples to learn more
[22:18]<dyguw>I need to work, work, work... damnit, I need to work, work, work... I can't. I am being distracted all the time.
[22:18]<dyguw>Argh, I'll be back tomorrow.
[22:19]<aa-mggvjg>heh leaving irc is a good way to concentrate on work
[22:20]<fyfuym-syfggag>ja I am thinking the same shit
[22:23]<gjrvcxnne>jc-denton: good examples of how to calculate pi?
[22:23]<aa-mggvjg>no to learn c#
[22:23]<gjrvcxnne>ah
[22:23]<aa-mggvjg>of anything
[22:23]<aa-mggvjg>but it should be interesting
[22:23]<nvzzfzsv>jc-denton: implement the rar compression algorithm.
[22:23]<gjrvcxnne>say I have a pointer to an unmanages object created with GlobalAlloc, but i have the pointer to it as an int, so I can make a System.IntPtr from it by new System.IntPtr(varname).... I want to put that data into a byte array, how would I go about doing that without using any win32 api calls?
[22:23]<gjrvcxnne>or do I have to make at lease one? (GlobalSize I would assume)
[22:23]<aa-mggvjg>uhh
[22:23]<nvzzfzsv>or if that sounds too much, implement teh www2 enigma encoder
[22:24]<aa-mggvjg>isn't the rar alog difficult?
[22:24]<gjrvcxnne>y not start easy with some form of wavlet compression algorithm
[22:26]<aa-mggvjg>but compression algo is good to train programming
[22:26]<aa-mggvjg>what about smaller exmaples?
[22:27]<gjrvcxnne>if you want to learn C#, then don't use Mono... the VS IDE is a great tool for learning because of AutoComplete
[22:28]<aa-mggvjg>yes
[22:28]<aa-mggvjg>i also have vs
[22:28]<mzvzzznz__>I would say the contreriy
[22:28]<lnvnzxu>doesn't monodevelop have autocomplete?
[22:28]<gjrvcxnne>u mean contary?
[22:28]<lnvnzxu>haven't used it myself, though
[22:28]<mzvzzznz__>yes
[22:29]<gjrvcxnne>ah, didn't know that
[22:29]<mzvzzznz__>if you have to learn the exact syntax and you have to repeat it you will learn it better
[22:29]<lnvnzxu>the c++ compiler team fixed my bug in less than a week, good work
[22:29]<aa-mggvjg>it has
[22:29]<nvzzfzsv>I actually say the OTHER way... the VS IDE does too much for you and prevents you from truely learning the environment. spend some time using just the SDK and building with CSC, makefiles, maybe msbuild.
[22:29]<aa-mggvjg>but it's not as good as vs
[22:29]<aa-mggvjg>u cannot complete objects i think
[22:29]<aa-mggvjg>but classes
[22:30]<gjrvcxnne>eh?
[22:30]<gjrvcxnne>cannot complete objects?
[22:30]<gjrvcxnne>huh?
[22:30]<nvzzfzsv>the completion in monodevelop has gotten very good recently.
[22:31]<aa-mggvjg>ah u can
[22:31]<aa-mggvjg>it's not that bad
[22:34]<ggmzr>hey
[22:34]<ggmzr>not in C# but in general programming, does an array consist of an auxiliary data structure?
[22:34]<ggmzr>(Like queue, stack, lists, etc)
[22:39]<nvzzfzsv>no
[22:40]<nvzzfzsv>an array is a contigous space of memory
[22:40]<lnvnzxu>what do you mean by "consist"?
[22:40]<gjvvgg>hey guys, how do i make files in the solution explorer show up under the same category if the files are one class?
[22:41]<lnvnzxu>category?
[22:41]<gjvvgg>hmm
[22:41]<gjvvgg>like if you have a form
[22:41]<lnvnzxu>you have several partial class definitions in several files, and you want them to show up how?
[22:41]<aa-mggvjg>in c# there is a shortcut for getter/setter methods
[22:42]<aa-mggvjg>but i forgot how it works
[22:42]<gjvvgg>i want them to show up grouped under the main class file
[22:42]<gjvvgg>like it does with designer code
[22:43]<lnvnzxu>you'll likely have to edit the project file
[22:43]<lnvnzxu>manually
[22:43]<gjvvgg>peterhu: ghetto, but how?
[22:44]<gjvvgg>hrm, looking at it now... thanks peterhu
[22:44]<lnvnzxu>add a <DependentUpon>Foo.cs</DependentUpon> sub-element to the <Compile> element for the file you want to appear under Foo.cs
[22:48]<gjvvgg>peterhu: got it... thanks dude!
[22:49]<gjvvgg>ah crap
[22:49]<gjvvgg>why does it do this:
[22:49]<gjvvgg>when i doubleclick on the file it opens a designer with a form and everything even though they're marked with <SubType>Code</SubType>
[22:49]<gjvvgg>the main one, however, is marked as a form
[22:50]<lnvnzxu>hmm
[22:50]<lnvnzxu>doesn't here
[22:50]<lnvnzxu>like the "designer" class, my own file opens up with the text editor, subtype code
[22:51]<sdz>hi
[22:51]<gjvvgg>peterhu: can i pm you a snippet?
[22:51]<lnvnzxu>sure
[22:53]<aa-mggvjg>[Task:File=/home/nils/Mono/BinaryTree/BinaryTree/SortedTree.cs, Line=25, Column=18, Type=Error, Description=parameter type `BinaryTree.Node' is less accessible than method `BinaryTree.SortedTree.print(BinaryTree.Node)'(CS0051: Inconsistent accessibility)







