VaR shexecinfo: shellexecuteinfo; begin // hide the masterProgramWindow form1.hide; // wait for the execution to complete shexecinfo. cbsize: = sizeof (shellexecuteinfo); shexecinfo. fmask: = see_mask_nocloseprocess; shexecinfo. WND: = handle;
Starting from 0, I learned the outline of the VC ++ simulated auxiliary tutorial. The final QQ: 15402586 tutorial outline will be adjusted according to the actual progress. Chapter 1: 1.1 give yourself a confidence 1.2 What is C ++ what is VC ++
ArticleDirectory
Implemented using the compiler (using the MFC Framework)
Use named mutex objects
In Win32ProgramThere are many mutex running methods. I will analyze several different implementations below: Implementation in VC
Void cmy15454dlg: onbnclickedbutton1 () {int ts0 = 0, tm0 = 0, ts1 = 0, TM1 = 0; ctime time_t0 = ctime: getcurrenttime (); ts0 = time_t0.getsecond (); // get the current number of seconds tm0 = time_t0.getminute (); // get the current number of
Anyone who has used Access knows that Access will automatically switch over the input method when entering table data. If a field needs to enter English, Access will automatically switch to the En input state, for example, if another field needs to
How to open an application?
ShellExecute (this-> m_hWnd, "open", "calc.exe", "", "", SW_SHOW );
Or
ShellExecute (this-> m_hWnd, "open", "notepad.exe", "c: \ MyLog. log", "", SW_SHOW );
As you can see, I have not passed the complete path of the
In many cases, you need to execute the program to delete yourself from the physical disk, for example, uninstall the program, and clear the information obtained by some hacker programs, these programs with the auto-deletion function are collectively
1. Simulate mouse and keyboard operations on the foreground
Set the window to the top, and then call the API related to the simulated mouse and mouse operation. Microsoft provides an API, for example:
Setwindowpos (this-> getsafehwnd (),
Step 1: create an "MFC Appwizard (DLL)" project, select "regular DLL using shared mfc dll", and click "finish ".
Add a dialog box resource to the project, select insert-> resource from the menu, add a "dialog", and select "new". Now the dialog box
Document directory
Lua example (FOR loop)
Background
The first thing to do is to create a DLL containing Lua.
Add Lua inclusion file:
Now we need to start Lua VM as follows
Now we write functions that combine Lua and C/C ++.
Now we need to
Assert ()
The assert () parameter is tested. If the parameter is 0, the execution is interrupted and a description message is printed. It does not play any role in the release version program. When using assert (), you must ensure that there is
Using Flash for interface beautification is a common method. Flash animation is simple and elegant, and it is very easy to embed flash into the application interface, you only need to place a Shockwave Flash control. However, there are two problems
Address:
In MFC, the drawing of any window component is placed in the two member functions.
OnEraseBkgnd () is used to draw the basemap, while OnPaint () is used to draw the main object.
For example, there is text on the gray button.
What
QVBox in Qt 3.0 is like this:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/*************************************** ***************************** Qt tutorial 1-3********************************
During the processing of events such as OnKeyDown, OnKeyUp, OnMouseDown, and OnMouseUp of components, there is a TShiftState variable Shift,
The TShiftState type is defined as follows:
Code highlighting produced by Actipro CodeHighlighter
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service