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.51 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-16
[00:08]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[00:24]<y-gz>http://www.i-nz.net/files/tmp/banshee-equalizer.png
[00:24]<y-gz>ops
[00:35]<sugsxdgnlrmd>Is that possible to stop a foreach loop?
[00:37]<sjlx>break it :)
[00:38]<sugsxdgnlrmd>oh... this one slipped my mind, i tryed escape continue and exit :/
[00:38]<sugsxdgnlrmd>thanks
[00:41]<sjlx>u'r welcome
[01:10]<-- 2yd2nzy xrs fuyv>http://iownmymusic.org/ http://iownmydvds.org/ .")
[01:21]<vyzusdjvnev>what the hell is Boo?
[01:27]<lxo>Hi all! I'm hoping for a bit of a push in the right direction. I'm trying to make a file listing in visual studio so that people can click files then use an 'add' button to move them into a list of 'things for addition' - would you mind pointing me to the right control to get the file listing? (in a treeview window?)
[01:30]<vyzusdjvnev>ill brb guys
[02:14]<rnmgxjsv>hey, i want to do ReadProcessMemory directly into a native struct i have defined, how can i go about this, i tried to make it unsafe and delcare the buffer as void *lpBuffer, but C# gives an error on the cast (void *)&struct
[02:15]<y-gz>RedGhost: http://mono-project.com/Interop_with_Native_Libraries
[02:15]<y-gz>Marshal.ToStructure or something
[02:16]<rnmgxjsv>yeah PtrToStructure
[02:16]<rnmgxjsv>i say but
[02:16]<rnmgxjsv>saw*
[02:16]<rnmgxjsv>that requires two buffers
[02:16]<rnmgxjsv>the buffer to read into byte[ ], and the structure
[02:16]<rnmgxjsv>thats more allocated memory
[02:16]<rnmgxjsv>and slower o:
[02:26]<rrrf2rer>question... how do i get a type from an assembly that is not the executing assembly but a referenced assembly?
[02:29]<rrrf2rer>doh, nevermind... its been a while...
[02:40]<sayjfynnz>How do I unwrap an object array before passing it to a method that takes params object[] args?
[02:46]<sayjfynnz>http://www.nomorepasting.com/paste.php?pasteID=65227 (how do I unwrap an array into params object[]?)
[02:54]<sayjfynnz>Figured it out. The problem is that int[] is not implicitly convertible to object[].
[03:03]<rnmgxjsv>C:\Documents and Settings\bpower\My Documents\Visual Studio Projects\cod2cheat\mainform.cs(95): Cannot take the address or size of a variable of a managed type ('Unmanaged.Cod2Engine.centity_t')
[03:03]<rnmgxjsv>unsafe {
[03:03]<rnmgxjsv> Cod2Engine.centity_t ce2;
[03:03]<rnmgxjsv> Cod2Engine.centity_t *ce3 = &ce2;
[03:03]<rnmgxjsv> }
[03:04]<rnmgxjsv>how can i get the address of a struct i have
[03:04]<rnmgxjsv>defined and declared
[03:44]<prrrru>hi all. i need help converting a c++ dll to c#..
[03:45]<prrrru>basically the c++ has in the headers file: a defenition for __cdecl TOptionsFunction and in the cpp file, __declspec(dllexport) BOOL Options...
[03:45]<prrrru>what defenition do i specify in c# ?
[03:46]<prrrru>public bool Options.. or ublic bool TOptionsFunction.. ?
[03:46]<prrrru>or am i totally off track?
[03:48]<cjmgrug>whenever i see atleast 2 consequtive underscores prceding a string, i get all frightened, coz it looks very complicated.. and therefore must be complicated..
[03:49]<cjmgrug>preceding*
[03:49]<vyzusdjvnev>hey peeps
[03:50]<vyzusdjvnev>anyone got mono working with Visual Studios 2005?
[03:50]<znzznss>why am I getting a NullReferenceException not handled error on line 75 when instantiating my class? http://rafb.net/paste/results/j5uI5535.html
[03:53]<vyzusdjvnev>whats the full error?
[03:53]<znzznss>I think I'm just having a hard time wrpaping my head around lists and what I want to do
[03:53]<znzznss>it compiles and runs, lt me see what the final error is
[03:54]<vyzusdjvnev>brb in 5 minutes
[03:54]<vyzusdjvnev>and ill try help you when i get back if no one else has
[03:54]<znzznss>thanks
[03:57]<vyzusdjvnev>back
[03:57]<vyzusdjvnev>whats the full error?
[03:57]<znzznss>hm, actually I guess I changed my code from last night without remembering (good idea to program until early in the morning)
[03:58]<znzznss>http://img225.imageshack.us/my.php?image=argumentoutofrangeexceptiondw5.jpg
[03:58]<vyzusdjvnev>what be a good idea is too comment more
[03:58]<vyzusdjvnev>to*
[03:58]<znzznss>certainly, certainly...this was suppsoed to be a five minute short test, but I'm running into trouble
[03:59]<vyzusdjvnev>i see your problem
[04:00]<vyzusdjvnev>you went over your list index
[04:00]<vyzusdjvnev>you need to knock it back some
[04:00]<znzznss>basically, i have a class Lesson, which starts at a cetain time and ends at a certain time, and also runs on certain days of the week. I want to pass a string to the constructure saiying the days of the week are something like "MWFSu" for monday, wednesday, friday, sunday. I want the constructor to build a list of weekday (an enum type) and add them all to the list.
[04:00]<znzznss>I think I recognize it too, lemme try and change something
[04:01]<znzznss>(though I really don't knwo if this is the most efficient way for me to be doing this)
[04:01]<vyzusdjvnev>i haven't done much with List<> :P
[04:01]<prrrru>are .h files usable by c# ?
[04:02]<zgzzcygnv>...
[04:02]<zgzzcygnv>no
[04:03]<prrrru>okay, another dumb question, cuz im going nuts: is it possible to write a c# replacement for a c++ dll ? (a c# equivalent that does the same thing) ?
[04:03]<zgzzcygnv>duh
[04:04]<zgzzcygnv>unless the C++ dll does stuff that is extremely hard to replicate in C#, like modifying memory of other applications or something
[04:04]<prrrru>just recieving and returning structures of data..
[04:04]<znzznss>VirusDotNET: maybe I'm just over-doing this. I could just leave the days in the String format
[04:05]<vyzusdjvnev>yeah
[04:05]<zgzzcygnv>use the DateTime class, regress
[04:05]<zgzzcygnv>it has methods for parsing strings and such
[04:05]<vyzusdjvnev>>.<
[04:05]<znzznss>I'll google it right now, thanks
[04:06]<vyzusdjvnev>why does VS not work with GTK#
[04:06]<vyzusdjvnev>>.<
[04:06]<zgzzcygnv>why should it?
[04:06]<zgzzcygnv>GTK# is crap
[04:06]<zgzzcygnv>use SWF
[04:06]<vyzusdjvnev>i know I just wanted to try it ;)
[04:07]<znzznss>SWF?
[04:07]<znzznss>for GUI stuff?
[04:08]<zgzzcygnv>System.Windows.Forms
[04:08]<zgzzcygnv>yes
[04:08]<prrrru>can you show me *one* example of how i convert some function (declartions) to c# , if i show you what i have? (plz?) http://members.westnet.com.au/bilal/cpp2cs.txt
[04:09]<zgzzcygnv>i don't know C++, by choice.
[04:09]<prrrru>the c++ is taken from sample (working) code
[04:09]<prrrru>ah k
[04:09]<prrrru>i was asking generally
[04:09]<vyzusdjvnev>Penggu, learn C#
[04:09]<prrrru>hopeing someone would..
[04:12]<znzznss>heh, I was thinking SWF, as in macromedia/flash...
[04:13]<znzznss>it seems DateTime is fine in that it completely removes the need for my own weekday struct and is more detailed, but it only holds ONE day.
[04:13]<prrrru>is there any way to 'capture' dll requests by a program, to see what functions it's looking for?
[04:13]<zgzzcygnv>regress, DateTime's counterpart is TimeSpan







