Use cppcheck
Code
(Jinqing's column)
Cppcheck is an static analysis tool for C/C ++ code.
Cppcheck homepage:Http://cppcheck.sourceforge.net/
For instructions, see:Http://cppcheck.sourceforge.net/manual.html
After you download and install cppcheck, you can test it as follows:
D: \ temp \ cppcheck -- enable = all -- template = vs D: \ code \ Server 2> D: \ temp \ result.txt
Open all check items and use the incorrect report format of vsto expor
I wrote a vsto Excel project for the project, and the debugging times "CLR cannot be converted from com context 0x159268 to com context 0x158f88, which has lasted 60 seconds. The thread with the target Context/unit is likely to execute a non-pump wait or process a very long operation without sending a Windows message. This usually affects the performance and may even lead to applicationsProgramNo response or memory usage accumulates over time. To avoi
For more information, see StoryRanges, NextStoryRange, WdStoryType, and Range.
Replace text in Word textbox objects using VSTO and C #
01
///
02
/// Search for and replace the text
03
///
04
///
05
///
06
///
07
public
void
SearchReplace(
string
oldStr,
string
newStr)
08
{
09
# Region text area
10
object
replaceAll = WdReplace.wdReplaceAll;
11
12
wordApp.Selection.Find.ClearFormatting();
13
wordApp.Selectio
Do not compete for language, but state the facts:
1. desktop software
Not only Windows, but also open-source Mono, but also C # in Apple Mac and Linux (such as Ubuntu. In addition, the mkbundle tool can be used to separate the C # program from the Mono framework and run on Mac/Linux, just like a program compiled directly using C/C ++.
2. Web Development
In addition to ASP. NET is used to develop large websites and run on Windows, Linux, and FreeBSD. It is applicable to a wider range of enter
Snap to System.InvalidOperationExceptionIstransient=falseMessage= This implementation is not part of the Windows platform FIPS-validated cryptographic algorithm.Source=mscorlibStackTrace:In System.Security.Cryptography.MD5CryptoServiceProvider. ctor ()Although I do not understand the reason, the solution is: Modifythe registry: Hkey_local_machine\system\currentcontrolset\control\lsa\fipsalgorithmpolicy Enable=0.I encountered a local IIS debugging Web site, and after modifying the registry it is
Original source: http://www.cnblogs.com/Charltsing/p/EncryptVBACode.htmlVBA code encryption is a commonplace issue, and since my VBA dumper was released, any encryption at the office level has lost its meaning. So, many people began to move to the VB package or upgrade to Vsto,delphi and other languages. However, for the vast majority of Vbaer, the problem of re-learning a language is far more than the benefits of developing VBA programs. So, is there
, chart (this npoi is not very good at present), tables, data validation, formulas, VBA and so on.
Official website: http://epplus.codeplex.com/ 6.LinqToExcel
Linqtoexcel is an open source project under the. NET platform, which implements LINQ syntax query Excel spreadsheets. Type of linqtoxxx if you are a LINQ grammar candy lover That's best for you. For example, the following code queries the head of a spreadsheet:
var excel = new Excelqueryfactory ("Excelfilename");
var indianacompanies = fro
copy of Visual Studio Professional (or any role-based SKU that includes the team Suite), Visual Studio, and Tools for Office Second Ed Ition Beta and Visual Studio team Explorer. Since this column is primarily about extending team System, I'm not going to go into specifics about hooking code to the Word infrastructure, but provide all the code for your reference. If you need more information about writing Office Plug-ins, visit Msdn.microsoft.com/office/tool/
given, as shown in Figure 14-27.
Figure 14-27 Document review Results
If you want to achieve more flexible functionality, you can call the Document Inspector in your code. In C #, you can invoke the functionality of the Document Inspector by calling the Microsoft.Office.Core.IdocumentInspector interface. If you have a VSTO programming base, you can write an office plug-in to implement some custom functionality. Of course, using the APIs provided
Some time ago, Ubuntu had a problem. I re-installed Version 10.10, which is different from the previous advantages and disadvantages. I will not repeat it here. I will try again later on 11.04release. Now I will briefly introduce the installation steps: 1. Install Ubuntu. The steps are relatively simple. I am not a professional programmer engaged in network clusters, but will simply install them with dummies. There is just a-year-old Chinese version o
Use vi in Linux to improve work efficiency-general Linux technology-Linux technology and application information. The following is a detailed description. The first time I used vi, I felt that it was not easy to use. Soon I replaced vi's work on Linux with gedit. But now, we finally understand the power of vi. Why did it become a standard editor for Unix and Linux 40 years ago, and its position remains unchanged until now? The answer is not required. We feel that vi is not easy to use because it
The power protection and hard disk protection functions of Thinkpad are quite good, which can ensure the stability of computer business applications. This function can also be installed in Ubuntu, but it is more complicated than the installation method of dummies in Windows, however, it is still quite a fool to execute the following command $ sudoaptitudeinstalltp-smapi-source $ sudomodule-assistantgettp-smapi-source $ sudomodule
The power protection
humiliation. A man who can withstand loneliness never gets lonely, but his patience is for a better outbreak.To those who say we are dummies, say "I am dummies", so that they are at a loss! Don't argue with those who accuse us for no reason, because this will only make you angry. It is better to tolerate others than to hurt others. tolerance is the best panacea for treating others' wounds.
7. Maintain a go
wisdom in life.
At work, it is a loss to do more work or do more work for others. If the leader asks you to work overtime and catch up with the task, don't think you have suffered a big loss. Instead, you should be glad that the leader only calls you but does notOther people trust you and appreciate you. A disadvantage is a contribution. The more you contribute, the more you get. Willing to work overtime is such a kind of disadvantage.
Willing to give up and give it to others; people who lear
often a man who can bear the humiliation. A man who can withstand loneliness never gets lonely, but his patience is for a better outbreak.
To those who say we are dummies, say "I am dummies", so that they are at a loss! For those who accuse us for no reason, don't argue with them, because this will only make you angry. It is better to tolerate others than to hurt others. tolerance is the best panacea for t
who can bear the humiliation. A man who can withstand loneliness never gets lonely, but his patience is for a better outbreak.
To those who say we are dummies, say "I am dummies", so that they are at a loss! Don't argue with those who accuse us for no reason, because this will only make you angry. It is better to tolerate others than to hurt others. tolerance is the best panacea for treating others' wounds
, all manual testing will eventually become a bottleneck, because the company will eventually suffer a decline in profitability due to high testing costs, therefore, automated testing tools and even smart testing tools are bound to take the stage of history. So how do we get started?
1. Based on Durability
Start with the most shared part. There are not many functions, but they must be durable. Based on this, you can enter development. During the development process, you may find that your techno
have not realized before, it is squandered to the white is really clean, once the spirit, lively, carefree, stubborn, and can not afford to lose again. She cried, not so much as lamenting love, it is better to say that it is a life of her own.What if the heart is higher than the sky? The more fantasies, the more despair.
(3) Brother Gao WeiguoSometimes we may even envy a fool.Because it is silly, we will not turn around and use the so-called thinking to hide our eyes. It is often unexpected to
you and appreciates you. A disadvantage is a contribution. The more you contribute, the more you get. Willing to work overtime is such a kind of disadvantage. Willing to give up and give it to others; people who learn to eat some losses at the right time are definitely not mentally retarded, but wise.
To leave room for others is to leave room for yourself. To give convenience to others is to give convenience to others. To treat others well is to treat yourself well.
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.