First, the official website download the source code, unzip to get Scintilla and Powereditor folder.
Second, install the vs2013. Open powereditor\visual.net\notepadplus.vcxproj directly.
Third, do the operation: build, rebuild the solution.
error c2220 warning is treated as error "
< Span style= "color: #333333; letter-spacing:0.5px; line-height:22.5px; " > right button ->< Span style= "color: #333333; letter-spacing:0.5px; line-height:22.5px; " > attribute ->< Span style= "color: #333333; letter-spacing:0.5px; line-height:22.5px; " > configuration Properties - >c/c++-> General, modify the value "treat warnings as errors" to "no".
2. encountered a problem where Notepad++.exe is not found, the solution is
General, linker, configuration Properties, properties, right-click, change "Output file" to "$ (OutDir) Notepad++.exe"
3. Encounter LNK2019 can not find the symbol of the problem, jsonXXX.lib problem. This is the time to compile your own Jsonxxx.lib library.
The process is: find the Powereditor\src\jsoncpp\makefiles\vs71\jsoncpp.sln file,
Double-click the Jsoncpp.sln file to open the JSON project directly .
Build-and-rebuild solution. A new Jsonxx.lib library file is generated.
Back to the Notepad project, re-execute: Build--rebuild solution. It should be possible to generate Notepad++.exe.
The Notepad project relies on the Scintilla project, but it can not compile itself.
The specific method is to install Notepad directly on the system. Find the folder where Notepad is located, locate the SciLexer.dll file,
Copy the file to the newly generated notepad++.exe folder. Run notepad++.exe!
for the fourth step, because notepad++ has provided the Scilexer source code, I directly compiled the source code, but found in the decompression Scintilla compiled not past, Then I found a scintilla.original.forUpdating directory under Powereditor, so I opened it with vs2013 scintilla.original.forupdating\scintilla.356 \win32\scilexer.vcxproj, I can compile through and then compile the generated scilexer.dll Copy to
vs2013 Compiling notepad++ Source code