Exe is not to determine how to run?
We need to achieve in the code to determine whether the program has begun operation, today released the code to look at everyone and see! # include Tlhelp32.h bool CheckRunning (char * exe) ( HANDLE handle = CreateToolhelp32Snapshot (TH32CS_SNAPPROCE...
vc + + to limit the size of the window method
General changes in the size of the window, the user is dragging the window and frame. Therefore, we can be intercepted in the main window WM_NCHITTEST information in response to its function to determine CWnd:: OnNcHitTest () return value to HTRIGHT,...
Const completion of the use of heavy-duty
(A) completion of the heavy use of the parameters const void print (int t); / / a function void print (const int t); / / Function II int i = 3; const int j = 4; print (i); / / one sentence: Call a function print (j); / / Second sentence: the second ...
c + + to achieve the methods and code calculators
Once the expression into a suffix and then calculated on the expression of very simple. Symbols on the face of a pop-up from his recent two operands and then proceed to the designated operator of the operation ok on the pressure after the completion ...
HOOK used to disable the keyboard and mouse click
////////////////////////////////////////////////// First of all, the definition of //////////////////////////////////////// HWND g_hWnd; / / define a window handle HHOOK g_hMouse; / / mouse hook of the process HHOOK g_hKeyBoard; / / keyboard hook of ...
Methods used extern
# include stdafx.h   1.extern variables used in the statement, there is often such a role, you *. c file a statement of a global variables, the overall situation of the variables used to be, on the *. h and in a statement to extern .   2. If ...
Data deleted from the document
To delete a file from which data is written document, according to a written into the structure of the body, to remove a specified that you want to delete data which a structure of the body. Treatment: 1: The original document PWDFILE, first create a...
A Java programmer should master the skills of 10
1, grammar: to be more familiar with, written in IDE code when the editor of a line of error under the error message should be able to know what kind of grammatical mistakes and know that any of the amendments. 2, the order: JDK must be familiar with...
Using Visual C + + to achieve the PDF document shows
PDF presentation PDF is Portable Document Format Portable Document Format, an acronym, which is developed by Adobe an electronic document format has become the international de facto standard for electronic document exchange. PDF files can be read u...
Using VC 6.0 of the three serial communication methods
Abstract: This paper introduces the Windows platform in the realization of serial communication mechanisms, discussed under different conditions with Visual C + + design of the three serial communication program, and in light of reality and realizing...
Site Search
Recommended article
AD