1. Add a trace statement to MFC
2. In tools> MFC tracer, select enable tracing and click OK.
3. debug and run go (F5) (Note: not execute '! 'The reason why we couldn't see trace content in the past is that it wasn't debugging, '! ', Remember, remember)
4. The trace content will be displayed in the debug window in the output. The debug execution will automatically jump from the build window to the debug window, where the trace content will be displayed, ^_^
The following is a detailed description
JS Cross-domain is a topic of much discussion. Cross-domain access to IFrame is also well researched.
generally divided into two situations:
One, is the same as the main domain, the different subdomains between the Cross-domain;
With the main domain, different subdomains across domains, set the same Document.domian can be resolved;
The parent page accesses the child page and can be document.getElementById ("MyFrame"). Contentwindow.document to access the contents of the IFRAME page, or direct
press "ESC" Exit insert mode, and then press p at the target location to cut an entire line using CC.4. Vim Visualization modePress "CTRL + V" in command mode to enter the visual mode, where you can select the characters in the visual mode. As shown, select the column where you want to add the character, press "I" into insert mode, write the character "XXXX" to be added, and then press ESC to add "XXXX" before the entire column selected.5. Bulk modification of charactersIn one text, if you need
: FUNA (base * P)
{
P-> m_num =...; // probably this form
}
# UNDEF is defined later to cancel the previous definitionMacro definition(Cancel macro definition)
Trace macro
Trace macro is very useful for program debugging in VC and has functions similar to printf. This macro only appears in the debug version of the program, when release is enabled, the macro disappears completely, helping you reduce the amount of code when debugging is also performed.
The format is as follows:
Trace ("
enable tracing and click OK.
3. debug and run go (F5) (Note: not execute '! 'The reason why we couldn't see trace content in the past is that it wasn't debugging, '! ', Remember, remember)
4. The trace content will be displayed in the debug window in the output. The debug execution will automatically jump from the build window to the debug window, where the trace content will be displayed, ^_^
The following is a detailed description of the trace:
====================================
Tr
Trace macro is very useful for program debugging in VC and has functions similar to printf. This macro only appears in the debug version of the program, when release is enabled, the macro disappears completely, helping you reduce the amount of code during debugging.
The format is as follows:
Trace ("ddddddddddd ");
Trace ("Wewe % d", 333 );
There are also trace0, trace1, trace2... Corresponding to 0, 1, 2, respectively .. Parameters
Trace information
messages, helping you reduce the amount of code when debugging is also performed.
The format is as follows:
Trace ("ddddddddddd ");
Trace ("Wewe % d", 333 );
There are also trace0, trace1, trace2... Corresponding to 0, 1, 2, respectively .. Parameters
Trace information is output to the output window of the vc ide environment (which window Indicates the project error prompt you compile), but it is limited to running your debug version program in the V
Trace macro for VCProgramDebugging is very useful and has functions similar to printf. This macro only appears in the debug version of the program. When release is used, the macro will be completely sent, this helps you reduce the number of release operations.CodeQuantity.
The format is as follows:
Trace ("ddddddddddd ");
Trace ("Wewe % d", 333 );
There are also trace0, trace1, trace2... Corresponding to 0, 1, 2, respectively .. Parameters
Trace
Trace macro for VCProgramDebugging is very useful and has functions similar to printf;
This macro only appears in the debug version of the program. When release is used, the macro disappears completely, helping you reduce the number of debugging tasks during release.CodeQuantity.
Trace ("ddddddddddd"); trace ("Wewe % d", 333); trace0, trace1, and trace2 also exist... Corresponding to 0, 1, 2, respectively .. Parameter trace information is ou
fails to be matched.
In fact, to make the entire expression match successfully,Greedy matchThe matched characters will also be "exported. Therefore, greedy matching is similar. When there are manyNumber of unknown matchesIn order to make the entire expression match successfully, all greedy or non-Greedy expressions must try to reduce or increase the number of matching times, thus forming a large loop, this results in a long matching time. This article is called a "trap" because this efficiency
Found that if I was in the DIV or other non-form tags, the original use of ordinary JS directly document.getElementById ("id"). innerHtml (or some other) is OK.But not in jquery.For example:document.getElementById ("T"). innerhtml= "DDDDDDDDDDD"; -----------A$ ("#t"). innerhtml= "Sdsds"; -----------Bdocument.getElementById ("T") obtains a DOM object, and all objects have innerHTML$ ("#t") gets the jquery object, no innerHTMLSo we can use it this way:$
Use of trace macros in C + +
Trace macro for VC under the program debugging is very useful things, with a similar function of printf, the macro is only in the debug version of the program appears, when the release of the macro disappears completely, thus helping you debug also in the release of the time to reduce the amount of code.The use is very simple and the format is as follows:TRACE ("ddddddddddd");TRAC
Trace macro for the VC under the program debugging is very useful things, with a similar function of printf, the macro is only in the debug version of the program appears, when the release of the macro is complete message, thus helping you to adjust the release also reduce the amount of code.
The use is very simple and the format is as follows:
TRACE ("ddddddddddd");
TRACE ("wewe%d", 333);
There are also trace0,trace1,trace2 ... correspond to 0,1,2 re
method. without writing a script, you only need to implement it with simple css.
But this method is also flawed, is in the IE series, when selecting an option will have a background color block, IE7-IE10 has this bug.
In Opera, the background image set to p is not displayed, that is, the select drop-down arrow is not displayed. I don't know why.
The following code
The Code is as follows:
AAAAAAAAAAA Bbbbbbbbbbbbb CCCCCCCCCCC DDDDDDDDDDD
I just touched jquery.Found that if I were to assign a value to a DIV or other non-form label, it would have been directly document.getElementById with normal JavaScript ("ID" ). innerHtml (or a few others) is OK, but not in jQuery !For example:document.getElementById ("t"). Innerhtml="ddddddddddd"; -----------Change the element of id= "T" to dddddddddd$ ("#t"). Innerhtml=" Sdsds"; document.getElemen
, the macro is only in the debug version of the program appears, when the release of the macro is complete message, thus helping you to adjust the release also reduce the amount of code.The use is very simple and the format is as follows:TRACE ("ddddddddddd");TRACE ("wewe%d", 333);There are also trace0,trace1,trace2 ... correspond to 0,1,2 respectively. A parameterThe trace information is output to the Output window of the VC IDE environment (which is
" add matching Times ", the" d (\ W + ?) If none of Z matches, the entire expression fails to be matched.
In fact, in order to make the entire expression match successfully, greedy match will also properly "give up" the matched characters. Therefore, greedy matching is similar. When an expression has a large number of unknown matching times, to make the entire expression match successfully, each greedy or non-Greedy expression must try to reduce or increase the number of matching times, theref
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.