<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using C++ standard library in Notepad++ plugins.]]></title><description><![CDATA[<p dir="auto">I’m a complete newbe at plugin programming and have lots of things to learn. Lots, lots, tons of things!!</p>
<p dir="auto">Now I wonder if it’s safe to use the C++ standard library in my plugins. Will another user be able to run the plugin if he hasn’t a C++ toolchain installed? Would I have to statically link the standard library and the C/C++ runtime or would Visual Studio do this for me by default?</p>
<p dir="auto">How do you do? Do you call std::  functions in your plugins or do you avoid them?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27730/using-c-standard-library-in-notepad-plugins.</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 01:41:00 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27730.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Dec 2026 22:17:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using C++ standard library in Notepad++ plugins. on Thu, 03 Dec 2026 17:14:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/matsnorberg" aria-label="Profile: matsnorberg">@<bdi>matsnorberg</bdi></a></p>
<p dir="auto">If you find C++ overwhelming (like I do), you might want to give <a href="https://github.com/molsonkiko/NppCSharpPluginPack" rel="nofollow ugc">NppCSharpPluginPack</a> a try, since it’s built in C#. I maintain it myself, and I can vouch that it works pretty well. If you use <a href="https://github.com/molsonkiko/JsonToolsNppPlugin" rel="nofollow ugc">JsonTools</a> or <a href="https://github.com/molsonkiko/HugeFiles" rel="nofollow ugc">HugeFiles</a>, those plugins are more or less based on that template.</p>
<p dir="auto">I think that C++ is a much better bet if you feel confident in your ability to write memory-safe C++, but if you feel anxious about not having a garbage collector, NppCSharpPluginPack is a good option.</p>
<p dir="auto">There’s also <a href="https://github.com/bruderstein/PythonScript/releases" rel="nofollow ugc">PythonScript</a>, which is probably not a great choice for any plugin that requires heavy computation due to Python being a slow language, but is quite nice for small scripts.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106904</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106904</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Thu, 03 Dec 2026 17:14:27 GMT</pubDate></item><item><title><![CDATA[Reply to Using C++ standard library in Notepad++ plugins. on Thu, 03 Dec 2026 01:26:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/matsnorberg" aria-label="Profile: matsnorberg">@<bdi>matsnorberg</bdi></a>:</p>
<p dir="auto">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++ &gt; Code Generation and set Runtime Library to /MT for Release builds and /MTd for debug builds.</p>
<p dir="auto">If you use the <a href="https://github.com/npp-plugins/plugintemplate" rel="nofollow ugc">official plugin template</a>, the supplied solution file already sets static linking.</p>
<p dir="auto">Note that this is OK because Notepad++ and plugins never pass C++ objects between one another. The plugin API is a pure C interface.</p>
<p dir="auto">The only time this might cause a problem is if your DLL links further DLLs which were compiled with dynamic linking.</p>
<hr />
<p dir="auto">A side note: you might want to take a look at a project I created, <a href="https://github.com/Coises/NppCppMSVS" rel="nofollow ugc">NppCppMSVS: Visual Studio Project Template for a Notepad++ C++ Plugin</a>. 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, <em>This project is not a part of Notepad++ and is not endorsed by the author of Notepad++</em>. With that understanding, you might want to take a look at its <a href="https://coises.github.io/NppCppMSVS/help.htm" rel="nofollow ugc">documentation</a> 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).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106900</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106900</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Thu, 03 Dec 2026 01:26:31 GMT</pubDate></item></channel></rss>