|
More site info...
C++ and WinAPI | Forum profile
|
|
Forum profile page for C++ and WinAPI on http://www.codeguru.com.
This report page is the aggregated overview from a single forum: C++ and WinAPI, located on the Message Board at http://www.codeguru.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "C++ and WinAPI" on the Message Board at http://www.codeguru.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on C++ and WinAPI:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
33
|
120
|
368
|
|
Post:
|
56
|
221
|
750
|
|
|
C++ and WinAPI Posting activity graph:
|
Top authors during last week:
user's latest post:
How do I stop flickering?
Published (2009-11-25 23:30:00)
Vlad, obviously we have difference of opinion. I also respectfully disagree, I did not state that we do not need background being erased in all cases, I stated in majority of cases. As (I think Chinese) saying goes, picture is better than a thousand words: I have attached 2 zip file with four different executables, illustrating your first and second use case. In each case suffix _E denotes CS_HREDRAW | CS_VREDRAW class style used to create...
user's latest post:
CloseHandle usage doubt?
Published (2009-11-25 07:48:00)
1. What is piArrVal and how is it used? 2. How do you create/update the pi[10] array and what does this magic number "10" mean??
user's latest post:
How do I stop flickering?
Published (2009-11-26 02:32:00)
I'm with JohnCz, I have 2 child windows (not inc. controls) that I set to resize when the main window is resized. I have both my main and 2 child windows with their styles set to 0 and I'm having no problems at all when I resize the main window, they're correctly resizing and not flickering at all, one of them is even rendering Direct2D and not having any problems.
user's latest post:
CloseHandle usage doubt?
Published (2009-11-25 04:07:00)
Hi, I am using PROCESS_INFOMATION structure to get process status. I used it as global array variable. PROCESS_INFOMATION pi[10]; So, for every process creation, I incremented the array element. In seperate thread, I am using WaitForMultipleObjects() to get process status. after WaitForMultipleObjects(), i am using for loop to get which process terminated. Code: for(i=0; i<10; i++) { if(Result == (WAIT_OBJECT_0+i)) { pid =...
user's latest post:
Win32 Project compatibility issues
Published (2009-11-24 12:06:00)
I checked those dll files and after some googling i found that i need to put those dll files inside "c:\windows\winsxs\x86_Microsoft.VC90.CRT_<some random no here>" of the target computer before running the application. so how to generate this directory path at the time of package installation. ?
user's latest post:
How do I stop flickering?
Published (2009-11-23 07:57:00)
A common cause of flickering is when the background of a window is painted again. You can avoid it in classical C programming with these three lines in your message loop: Code: case WM_ERASEBKGND: return(1); // Prevent erasing the background to reduce flickering break;
user's latest post:
Mfc application killed when...
Published (2009-11-20 06:05:00)
You tell us if it's possible. Who knows your app better than you do? Did you ever attempt to understand what in fact happens in your app? Does it crash on something related to your service, like shared memory, pipe or socket? Or actually gets terminated by OS? Did you try to launch it manually and see if it survives in this case?
user's latest post:
Localization MessageBoxEx
Published (2009-11-24 04:31:00)
Quote: Originally Posted by olivthill2 Where is the problem? If a user has selected English, in his settings, then it is ok to have "Yes" and "no" instead of "Oui" and "Non", isn't it? The problem is that the application language setting can't be set to french when im using the english OS language. So i guess i won't be able to avoid creating a custom...
user's latest post:
How do I stop flickering?
Published (2009-11-24 09:06:00)
The rule is: never paint the same pixel twice. If you are erasing your background, then drawing on it, you are painting at least some pixels twice and you get flicker. You can either take elaborate steps to ensure that you only paint specific areas at specific times, but that gets complicated quick. A much easier way is to do all your drawing to memory, then when everything is done, paint the memory to the screen in one step. This is known as...
user's latest post:
How do I stop flickering?
Published (2009-11-25 13:26:00)
Quote: Originally Posted by JohnCz You need this behavior in some windows but in majority of cases, redrawing is undesirable. I respectfully disagree. There are many cases where you DO need those styles: - if your view is scrollable - if you scale it when window is resized - if you change layout (move / resize controls) This basically leaves only ONE case when you dont need them: - if you only show whatever part of content fits in the...
|
|
|
|
Latest active threads on C++ and WinAPI::
Started 5 days, 18 hours ago (2009-11-23 07:57:00)
by olivthill2
A common cause of flickering is when the background of a window is painted again. You can avoid it in classical C programming with these three lines in your message loop:
Code:
case WM_ERASEBKGND:
return(1); // Prevent erasing the background to reduce flickering
break;
Started 2 months ago (2009-09-29 07:45:00)
by antslag
Linker can't find library. Check paths for libraries.
Started 4 days, 20 hours ago (2009-11-24 05:37:00)
by VictorN
Please, edit your post replacing backslashes with the "normal" slashes in all tags .
Started 6 days, 7 hours ago (2009-11-22 18:44:00)
by ike_pbg
i see, thanks a lot to everyone, i cleared my doubts pretty much, my project is quite simple and the size of the .exe its like 1mg so i think its better to provide static libraries attached to my code than copy the .dll you said before anyways, i would like to hear suggestions and apreciate your comments, what im doing its a game, its a homework from the university, its the debians XJUMP, dont ...
Started 5 days, 22 hours ago (2009-11-23 04:09:00)
by olivthill2
I am not sure if it is a good thing to call GetCommandLine() . This will override the content of lpCmdLine . This is a pity since lpCmdLine is already containing your command line. You can see what is in this variable, with
Code:
FILE *log_fp; log_fp = fopen(log_file, "wt"); fprintf(log_fp, lpCmdLine); fclose(log_fp);
Started 1 week, 1 day ago (2009-11-20 09:40:00)
by olivthill2
Where is the problem? If a user has selected English, in his settings, then it is ok to have "Yes" and "no" instead of "Oui" and "Non", isn't it?
Quel est le problème ? Si un utilisateur choisit l'anglais dans sa configuration, il est normal qu'il ait "Yes" et "No" au lieu de "Oui" et "Non", ne croyez vous pas ?
Started 5 days, 14 hours ago (2009-11-23 12:06:00)
by hoxsiew
Handle the WM_SETCURSOR and WM_MOUSEMOVE messages.
Started 11 months ago (2009-01-02 23:01:00)
by Codeplug
http://msdn.microsoft.com/en-us/libr...27(VS.85).a spx
http://msdn.microsoft.com/en-us/libr...71(VS.85).a spx
http://msdn.microsoft.com/en-us/libr...10(VS.85).a spx
gg
Started 5 days, 19 hours ago (2009-11-23 06:36:00)
by Waterfox
Try GDI+
Too busy to be bothered with a code snippet but look at these
http://msdn.microsoft.com/en-us/libr...8VS.85%29.a spx
And for loading and displaying an image [ http://msdn.microsoft.com/en-us/libr...8VS.85%29.a spx shouldn't be to hard to display a png instead of a jpg. And yes it supports PNG (as well as a heap of other formats)
Started 1 week, 5 days ago (2009-11-16 09:18:00)
by hoxsiew
Please don't post multiple identical posts in different forums.
|
|
Hot threads for last week on C++ and WinAPI::
Started 6 days, 7 hours ago (2009-11-22 18:44:00)
by ike_pbg
i see, thanks a lot to everyone, i cleared my doubts pretty much, my project is quite simple and the size of the .exe its like 1mg so i think its better to provide static libraries attached to my code than copy the .dll you said before anyways, i would like to hear suggestions and apreciate your comments, what im doing its a game, its a homework from the university, its the debians XJUMP, dont ...
Started 5 days, 18 hours ago (2009-11-23 07:57:00)
by olivthill2
A common cause of flickering is when the background of a window is painted again. You can avoid it in classical C programming with these three lines in your message loop:
Code:
case WM_ERASEBKGND:
return(1); // Prevent erasing the background to reduce flickering
break;
Started 1 week, 1 day ago (2009-11-20 09:40:00)
by olivthill2
Where is the problem? If a user has selected English, in his settings, then it is ok to have "Yes" and "no" instead of "Oui" and "Non", isn't it?
Quel est le problème ? Si un utilisateur choisit l'anglais dans sa configuration, il est normal qu'il ait "Yes" et "No" au lieu de "Oui" et "Non", ne croyez vous pas ?
Started 4 days, 20 hours ago (2009-11-24 05:37:00)
by VictorN
Please, edit your post replacing backslashes with the "normal" slashes in all tags .
Started 1 week, 1 day ago (2009-11-20 06:02:00)
by VictorN
How to Create Win32 Dialog Based Application (Step By Step)
Dialog Boxes
http://www.relisoft.com/Win32/windlg.html
Well, you'll be able to find more results searching for win32 dialog based application example or something similar
Started 5 days, 14 hours ago (2009-11-23 12:06:00)
by hoxsiew
Handle the WM_SETCURSOR and WM_MOUSEMOVE messages.
Started 5 days, 19 hours ago (2009-11-23 06:36:00)
by Waterfox
Try GDI+
Too busy to be bothered with a code snippet but look at these
http://msdn.microsoft.com/en-us/libr...8VS.85%29.a spx
And for loading and displaying an image [ http://msdn.microsoft.com/en-us/libr...8VS.85%29.a spx shouldn't be to hard to display a png instead of a jpg. And yes it supports PNG (as well as a heap of other formats)
Started 5 days, 22 hours ago (2009-11-23 04:09:00)
by olivthill2
I am not sure if it is a good thing to call GetCommandLine() . This will override the content of lpCmdLine . This is a pity since lpCmdLine is already containing your command line. You can see what is in this variable, with
Code:
FILE *log_fp; log_fp = fopen(log_file, "wt"); fprintf(log_fp, lpCmdLine); fclose(log_fp);
Started 1 week, 1 day ago (2009-11-20 06:05:00)
by Igor Vartanov
You tell us if it's possible. Who knows your app better than you do?
Did you ever attempt to understand what in fact happens in your app? Does it crash on something related to your service, like shared memory, pipe or socket? Or actually gets terminated by OS? Did you try to launch it manually and see if it survives in this case?
|
|