15,908,776 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 Member 11287295 (Top 12 by date)
Member 11287295
6-May-15 15:25pm
View
I do understand the nature of the problem, and that's what actually bugs me. I'm doing everything necessary to avoid intermediate drawcalls, everything handled inside the WM_PAINT uses a backbuffer. Do you see any errors in the actual implementation of the double buffering?
Also i'd like to mention i'm not working with images/bitmaps. Everything is drawn with gdi/gdi+, and in no place i'm actually issuing a "white" redraw that may possibly cause said flicker. I'm a bit lost here
Member 11287295
5-May-15 19:24pm
View
Deleted
I do understand the nature of the problem, and that's what actually bugs me. I'm doing everything necessary to avoid intermediate drawcalls, everything handled inside the WM_PAINT uses a backbuffer. Do you see any errors in the actual implementation of the double buffering?
Also i'd like to mention i'm not working with images/bitmaps. Everything is drawn with gdi/gdi+, and in no place i'm actually issuing a "white" redraw that may possibly cause said flicker. I'm a bit lost here
Member 11287295
5-May-15 18:55pm
View
Indeed I really screwd up something. I was including the header with brackets. Thanks anyway
Member 11287295
2-May-15 17:59pm
View
I don't think I really screw up anything, I just created a plain new empty project and selected DLL from the options, the .cpp file has really nothing inside except a single include statement where I try to include the only header created. It gives an intellisense error, which disappears after including stdafx.h. As I said, and i'm just trying to understand what's the reason behind this, since It never happened with other kind of projects
Member 11287295
28-Jan-15 8:04am
View
So I deleted the namespace and called the function with the "MyMathFuncs::Add" string. Obviously I still got nothing out of it and it's unclear to me how am I supposed to convert the undecorated void __stdcall b::c(float){}; function to :
?c@b@@AAGXM@Z
Member 11287295
17-Dec-14 19:59pm
View
And that's what programming is about, losing hours (many) of your day to find out a semicolon drove you crazy. Thanks a lot
Member 11287295
12-Dec-14 12:02pm
View
It's the first line of code of the question :
Bitmap bmp(100, 100, PixelFormat32bppARGB);
Actually I know the procedure to display bitmaps the whole purpose of the question is why this particular case doesn't work
Member 11287295
12-Dec-14 11:49am
View
I assume you're loading a picture from a file, which is not what i'm trying to do. I need to create variable in size bitmaps on runtime
Member 11287295
12-Dec-14 11:23am
View
Doesn't work either way, that's why I'm thinking you cannot create a bitmap with that constructor, but I can't see no example online on how to create a gdi+ bitmap on runtime
Member 11287295
7-Dec-14 20:10pm
View
I finally found a way to make it work, the current process token needs to obtain the SeDebugPriviledges, it now returns only 2-3 access denied failures and the infamous first process which as you said could be OS-related.
I'll call it success for now and be just happy with it, thanks for your help
Member 11287295
7-Dec-14 18:20pm
View
Using your code now retrieves 54 processes (I guess it's the legit number of all running processes) the first process always fail with errorcode 87 -invalid parameter, 10 fails on enumProcessModules with error 299 and almost 38 fails with error code 5 : access denied, I get the same exact output if i'm giving admin rights or not, i'm directly running it as administrator (and I'm actually the computer Administrator)
EDIT: I'm not using MFC but plain winAPI, compiled in 64bit gives off more results, but I still see 25+ processes failing with access denied and the first process failing with error 87
Member 11287295
5-Dec-14 20:25pm
View
you're right, I absolutely have to keep an eye on errors of this kind
Show More