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-31
[17:54]<hzzzd>4 awilkins : Fifth gear more cool than top gear( fine, interesting and etc)?
[17:54]<sulnzw2jd|www6>coderun
[17:54]<sulnzw2jd|www6>coderun!
[17:54]<gjrvcxnne>stpeter: if it's any consolation, since the error is occuring when the bitmap is trying to be drawn, i'm drawn to the more likely conclusion that the pixel data has been locked, so when the gdi operation tries to lock it again to bit it, it fails, thus throwing the exception you see.
[17:54]<rwyfcygs>Fifth Gear isn't really more *cool* than Top Gear
[17:54]<gjrvcxnne>*blit
[17:54]<rwyfcygs>Fifth GEar is what happened when half the journos from TopGear defected to channel five.
[17:54]<hzzzd>4 awilkins : )))
[17:55]<rwyfcygs>THey have real cars that actual people drive.
[17:55]<hzzzd>4 awilkins : it`s a big plus, i need to download the one serie to my comp
[17:55]<rwyfcygs>Instead of cars that cost more than £100k
[17:55]<gjrvcxnne>anyone know of a method to force a form/window/application to the top of the z-order and to also have it gain focus>
[17:56]<svlnvnz>GoatCheez: yes is the same i think, could be that if i copy the buffer to a my fresh Allochglobal helpa bit?
[17:56]<rwyfcygs>harry: THe big plus of Fifth Gear is Vicki Butler-Henderson :-)
[17:57]<hzzzd>4 awilkins : maybe there are other fun and interesting tv program about cars which casual people drive
[17:58]<hzzzd>4 awilkins : is she cool and sexy billionare daugher which wants date with me and give me a lot of money?! if it is not - it is not a plus)))
[17:58]<gjrvcxnne>stpeter: dunno, u can always try tho
[18:06]<z2nffrdd>man this is just driving me nuts
[18:06]<z2nffrdd>how do you set a constraint on a generic type, and use inheritance... for a class
[18:06]<z2nffrdd>?
[18:07]<z2nffrdd>public class SomeClass<T> where T : ISomeInterface
[18:07]<z2nffrdd>that is great for a generic type constraint
[18:07]<svlnvnz>byte[] to IntPtr?
[18:08]<z2nffrdd>but how do I then inherit SomeClass from ISomeOtherInterface?
[18:11]<z2nffrdd>heh
[18:11]<z2nffrdd>duh
[18:11]<z2nffrdd>public class SomeClass<T> : ISomeOtherInterface<T> where T : ISomeInterface
[18:21]<rrd2uppnw>hello all
[18:21]<rrd2uppnw>anyone bind a dictionary<> to a gridview ?
[18:21]<rrd2uppnw>ive tried, and all it gives me are the keys
[18:22]<rrd2uppnw>not the values
[18:26]<svlnvnz>mmm but why there is not Marshal.Copy(IntPtr,IntPtr,int,int) but only Marshal.Copy(IntPtr,4IntPtr[],int,int)
[18:30]<vxznrm>because life's just not that good
[18:32]<svlnvnz>source and dest should be the same type
[18:32]<svlnvnz>like in CopyMemory(char*,char*)
[18:33]<svlnvnz>i can't understand i need to pinvoke copymemory to copy some bytes from one buffer to another?
[18:34]<vxznrm>you dont
[18:35]<svlnvnz>an array of IntPtr is 4 byte aligned
[18:36]<svlnvnz>buffer are allocated also with non 4 multiply as size
[18:36]<svlnvnz>like Marshal.Allochglobal(3)
[18:36]<svlnvnz>and return an IntPtr not IntPtr[]
[18:36]<svlnvnz>but the destination for Marshal.Copy is IntPtr[]?
[18:36]<svlnvnz>what i don't understand?
[18:39]<rjjgwq>jaybuffe1: I think ( DictionaryEntry ) e.Item.DataItem works in the OnItemDataBound event.
[18:43]<rwyfcygs>I think Marshal.Copy olnly allows you to go from Managed > Unmanaged and vice versa
[18:43]<rwyfcygs>Not UNmanaged to Unmanaged
[18:45]<rwyfcygs>So the (IntPtr,IntPtr[],int,int) override is for copying arrays of pointers to managed space.
[18:46]<svlnvnz>the problem is that to construct a bitmap from a buffer i need an IntPtr
[18:46]<svlnvnz>i don't know how to construct the bitmap from byte[]
[18:47]<svlnvnz>the constructor from bitmap that take memorystream (i can create the stream from byte[])
[18:47]<svlnvnz>don't have foundamental paraters like pixelformat stride ...
[18:48]<svlnvnz>*parameters
[18:58]<tdzzds>how to display
[18:58]<tdzzds>my form to all screen WITHOUT taskbar
[18:58]<tdzzds>user shouldn`t view taskbar
[18:59]<vxznrm_>taskbar?
[18:59]<vxznrm_>Form.ShowInTaskbar = false; ?
[18:59]<tdzzds>no
[19:00]<tdzzds>when i create a form
[19:00]<tdzzds>which is situated for all ov desktop
[19:00]<tdzzds>however i see taskbar
[19:00]<y-gz>make the form top most
[19:00]<tdzzds>i want to create a form which will under taskbar
[19:00]<tdzzds>4 i-nZ : i made it nothing
[19:01]<y-gz>SpikeLite google full screen form C# + hide taskbar
[19:01]<slycnlyvn>Result: Making a <b>Fullscreen form</b> and <b>hiding</b> the Windows <b>Taskbar</b> : http://www.daniweb.com/techtalkforums/thread32248.html
[19:21]<nnzjpfrr>Tygrys: turn off these annoying colors or I swear I will ignore you.
[19:22]<mggvrf_ffjss>Hello. I am trying to call an event via another method, however, I cannot figure out a way to send the needed object and eventargs.
[19:22]<mggvrf_ffjss>Can someone shed some light on the procedure?
[19:22]<nnzjpfrr>eventing in .NET is usually split in 3 parts.
[19:23]<nnzjpfrr>1. the actual event wich is always private (not even protected): event EventHandler m_MyEvent;
[19:24]<nnzjpfrr>2. the event accessors which are mostly public: public event EventHandler MyEvent { add { m_MyEvent += value; } remove { m_MyEvent -= value; } }
[19:24]<mggvrf_ffjss>ah, so i have to add it to the queue then?
[19:25]<nnzjpfrr>3. the raising method which is mostly virtual protected and calls the event: protected virtual void OnMyEvent(EventArgs e) { if (m_MyEvent != null) m_MyEvent(this, e); }
[19:25]<nnzjpfrr>override the raising method.
[19:26]<2grg_vdv>I've made a simple paint program using stuff like DrawLine(), DrawRectangle(), and DrawEllipse, and I need to be able to save and open drawings using XML but I can't find much information on the topic. Is there anyone who could give me some pointers?
[19:28]<nnzjpfrr>that's stupid.
[19:28]<nnzjpfrr>xml describes data in a textual form.
[19:28]<nnzjpfrr>pictures are binary.
[19:32]<svlnvnz>how can i render svg files?
[19:33]<nnzjpfrr>what's that supposed to be?
[19:33]<svlnvnz>standard vector graphic
[19:33]<svlnvnz>http://www.w3.org/Graphics/SVG/
[19:33]<pz2>scalable vector graphic
[19:33]<vufvuzn>scalable vector graphics
[19:33]<svlnvnz>ops scalable
[19:33]<svlnvnz>:)
[19:33]<pz2>and it depends on where you want to render them
[19:34]<pz2>firefox has native support, ie requires a plugin, I believe office has a component.....
[19:34]<svlnvnz>vector is always scalable, repetitant iuvant :)
[19:34]<svlnvnz>in .net 2.0
[19:34]<svlnvnz>in some picture box
[19:34]<znmnzz>what you do with svg is take the xml source code, print them in large fonts onto letter size papers
[19:35]<znmnzz>and then take the large stack of paper and hit them against your head
[19:35]<znmnzz>until you bleed
[19:35]<znmnzz>enlightenment will soon reveal itself
[19:35]<2grg_vdv>zeroflag: I was just told XML would be the easiest. I'm just storying each line or rectangle drawn and storing the Points and Size in List<T>s, and then iterating through each list to redraw everything.
[19:35]<svlnvnz>the window manager?
[19:36]<nnzjpfrr>bean_tmt: then just look what stpeter brought home. :P







