Picked notepad++ source to learn some best practices and sneak inside code of this popular text editor.
The readme file says –
Double click on
Notepad++\trunk\PowerEditor\visual.net\notepadPlus.vcproj to launch
Notepad++ project in Visual Studio, then build it with the mode you
want, that’s it.
But attempting to build this in VS-2012 RC build fails with errors saying – 1. some files missing, 2. IntelliSense: pointer to incomplete class type is not allowed.
To keep the question concise and readable, not posting exact error. Please let me know if it is required.
EDIT
Added Errors, as per request –
Error 1 error C1083: Cannot open include file: ‘FindCharsInRange.h’:
No such file or
directory c:\myLocalSourcePath\notepad++\powereditor\src\Notepad_plus.h 68 1 Notepad++Error 8 error C2511: ‘void ScintillaEditView::getGenericText(TCHAR
*,int,int,int *,int *) const’ : overloaded member function not found in
‘ScintillaEditView’ c:\myLocalSourcePath\Notepad++\PowerEditor\src\ScitillaComponent\ScintillaEditView.cpp 1715 1 Notepad++16 IntelliSense: cannot open source file
“VerticalFileSwitcher.h” c:\myLocalSourcePath\Notepad++\PowerEditor\src\NppCommands.cpp 35 1 Notepad++17 IntelliSense: cannot open source file
“documentMap.h” \Notepad++\PowerEditor\src\NppCommands.cpp 36 1 Notepad++25 IntelliSense: identifier “FindCharsInRangeDlg” is
undefined c:\myLocalSourcePath\Notepad++\PowerEditor\src\Notepad_plus.h 351 2 Notepad++
I could fix the issue, after changing the build profile. Posting here in hope it could be helpful to someone, one day.
to Unicode Debug build.
At this point of time build succeeded.
However while running the application, Scintilla DLL could not be located, as a hack I copied SCiLexer.DLL from installed Notepad++ directory in, Program Files to bin directory inside Notepad++ source code.