@matsnorberg:
Notepad++ is compiled with static linking, and it’s best to do that for plugins as well. Right-click the project, select Properties, then C++ > Code Generation and set Runtime Library to /MT for Release builds and /MTd for debug builds.
If you use the official plugin template, the supplied solution file already sets static linking.
Note that this is OK because Notepad++ and plugins never pass C++ objects between one another. The plugin API is a pure C interface.
The only time this might cause a problem is if your DLL links further DLLs which were compiled with dynamic linking.
A side note: you might want to take a look at a project I created, NppCppMSVS: Visual Studio Project Template for a Notepad++ C++ Plugin. It’s a template you can add to Visual Studio so that you can easily start a new plugin project directly from Visual Studio. As noted in the readme, This project is not a part of Notepad++ and is not endorsed by the author of Notepad++. With that understanding, you might want to take a look at its documentation and see if you think it would be an easier place to start than the official plugin template (which is a GitHub template, not a Visual Studio template).