Click here to Skip to main content
12,360,348 members (49,628 online)

Comments by _Erik_ (Top 5 by date)

_Erik_ 2-Mar-11 11:18am View
   
Deleted
Reason for my vote of 5
Thank you. I hope this will stop the torrent of questions about this topic.
_Erik_ 14-Jan-11 12:00pm View
   
Is this exactly the code your program runs or have you simplified it? I'm asking becouse, for example, calling CreateGraphics on a control which has not still created the handle can cause illegal cross thread calls.
_Erik_ 14-Jan-11 10:28am View
   
Yes, I have read your question, but I have done this kind of work countless times and so I do know you just have to use double buffer to avoid flickering, so maybe you are not using double buffer in the right places. Just want to put you in the right direction.
_Erik_ 30-Nov-10 8:57am View
   
No way. To make this you should declare a C# structure and, therefore, that structure will always be understood as a managed type, and you cannot declare a pointer to a managed type. The only thing you could do is using a byte* and manually calculate the offset and size for each field in the unmanaged object, but you cannot map a C# structure to a pointer becouse, as I have said, a C# structure is always understood as a managed type.
_Erik_ 5-Nov-10 12:46pm View
   
Answering your own question when you find a solution is usually a good practice but, in this case, I think you are going a bit too far.

Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid