15,886,110 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.