<?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[Search in target is sometimes failing]]></title><description><![CDATA[<p dir="auto">Hello, I am making my own plugin and a part of this plugin involves searching for, “xml version” in a selected area of text. I am using SCI_GETSELECTIONSTART and SCI_GETSELECTIONEND to retrieve the starting and endpoints of the selection and then setting the start and endpoints of the search with SCI_SETTARGETRANGE. Then I am using SCI_SEARCHTARGET to find “xml version” in the selected text. This is where my problem arises as sometimes this function fails and returns -1 and sometimes it works.</p>
<p dir="auto">This is the function I made to do what I described above.</p>
<p dir="auto"><img src="/assets/uploads/files/1590693167675-help.jpg" alt="help.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">I am not sure where I am going wrong, and if anyone could provide any help, that would be great.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19471/search-in-target-is-sometimes-failing</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 15:09:01 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19471.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 May 2020 19:14:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 19:38:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">I think I have made a very obvious mistake. I forgot to specify my search flag as you mentioned in my other post. After switching it to Regexp, it seems to be working. I feel like that was very obvious and you have taken a lot of your time to help me, so thank you again for all your help.</p>
<p dir="auto">If anything else happens, I’ll post again. Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54523</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54523</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 19:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 19:24:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">Did you start npp from within Visual Studio or did you attach (from Debug menu) npp to visual studio? If so, those should appear in<br />
View-&gt;Output window.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54522</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54522</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 19:24:30 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 19:16:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">Okay, I’m trying that now. I am using visual studios and I have added in my code a OutputDebugStringW, now where would I find the values that it outputs when I use my plugin in notepad?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54521</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54521</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 19:16:47 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 18:58:17 GMT]]></title><description><![CDATA[<p dir="auto">Actually, it doesn’t have to be a debug build, a release build should do it as well.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54519</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54519</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 18:58:17 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 18:56:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">ok, then I would say it is time to debug/print some info about<br />
target_start, target_end and position found.<br />
Make a debug build, use <a href="https://docs.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-outputdebugstringw" rel="nofollow ugc">OutputDebugStringW</a> and tools like <a href="https://docs.microsoft.com/en-us/sysinternals/downloads/debugview" rel="nofollow ugc">DebugView</a><br />
to capture the output. Of course only, if you can’t run within Visual Studio.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54518</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54518</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 18:56:38 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 18:51:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Of course, my code works, until it breaks liked we talked about before</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54517</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54517</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 18:51:41 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 18:47:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">Sorry, I am increasing the start by 2, I just didn’t clarify that. I meant that when I said, “Set the beginning of the target search area just ahead of where “&lt;” is now found”. My mistake. I know my code works because when I select the text,</p>
<p dir="auto">&lt;&lt;&lt;&lt;</p>
<p dir="auto">it results in</p>
<p dir="auto">&lt;<br />
&lt;<br />
&lt;<br />
&lt;</p>
<p dir="auto">Sorry for the confusion</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54516</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54516</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 18:47:01 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 18:27:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">From your explanation this doesn’t work.<br />
You need to advance the start by 2, correct?<br />
Assuming the following, 0123… are positions made visible.</p>
<pre><code class="language-z">0123456789
ab&lt;def&lt;h
</code></pre>
<p dir="auto">position of &lt; is 2 correct?<br />
Insert c at that position results in</p>
<pre><code class="language-z">0123456789
abc&lt;def&lt;h
</code></pre>
<p dir="auto">and if you set the start now to position+1 (=3) it will re-find the same &lt;</p>
<p dir="auto">Sure this is what you do?<br />
My pseudocode would look like this</p>
<pre><code class="language-z">target = selected text
target_end = last position of selected text
position = search in target for '&lt;'
while position &gt; -1:
    insert char '\n' at position 
    reset target_start to position+2 and target_end to target_end+1
    position = search in target for '&lt;'
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/54515</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54515</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 18:27:17 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 16:51:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">Sure. This plugin just places a “\n” infront every case of “&lt;” in the selected area.</p>
<p dir="auto">function(){</p>
<p dir="auto">Set the target search area to the area that has been selected.</p>
<p dir="auto">Look for the first case of “&lt;” in the targeted area.</p>
<p dir="auto">While a, “&lt;” can be found, get the placement of, “&lt;”, insert a “\n” at that spot. Set the beginning of the target search area just ahead of where “&lt;” is now found and increase the end of the target search area by 1. Search again for the next “&lt;” in the target search area</p>
<p dir="auto">}</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54509</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54509</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 16:51:23 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 16:30:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">yes, it could be that this is not the issue, but a new npp start also means that your data is not the same as before,<br />
but you certainly have more information to evaluate this than I do,<br />
I am fishing here more or less in the dark.<br />
Can you describe in <a href="https://en.wikipedia.org/wiki/Pseudocode" rel="nofollow ugc">pseudocode</a> what you are doing, maybe this could be helpful to find the issue.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54505</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54505</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 16:30:13 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 16:19:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">I see what you mean, but I don’t think that applies to my situation as when my plugin fails, I can simply reopen notepad and continue to format some more content until it fails again. If this issue was happening to every instance of content all of the time then I could see why this makes sense.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54504</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54504</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 16:19:14 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 16:12:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">yes, could be but to me it sounds more like an issue with the “new” content.<br />
For example, let’s say we have a text like this</p>
<pre><code class="language-z">This is a sampl of a text which has two wrong words named sampl.
</code></pre>
<p dir="auto">Now let’s assume your plugin is used to auto correct wrong words.<br />
If your code logic would be</p>
<ol>
<li>find all instances of the wrong word</li>
<li>Loop over the results and replace with the correct word</li>
</ol>
<p dir="auto">then it would fail as you invalidate the position of the second sampl<br />
word by replacing the first one.<br />
In such a scenario replacing from bottom to top would avoid this.<br />
Of course, there are multiple other ways to solve this issue as well.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54502</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54502</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 16:12:16 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 15:59:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">Thanks, I’ll try that.</p>
<p dir="auto">There is another thing I have noticed and I wonder if you could help me with it. The text file I am working on is around 40’000 lines long, and as I said before I am formatting small parts of that file and eventually it will start to mess up. What I have noticed though, is that when I copy and paste a part of the original text file to a separate notepad tab and try to format it, then once it’s formatted it, delete it and then repeat the process, the formatting process never messes up. Could it be that the length of the text file has something to do with how many times I can use my plugin on it?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54501</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54501</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 15:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 15:51:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<blockquote>
<p dir="auto">until it fails and then won’t work until I restart notepad</p>
</blockquote>
<p dir="auto">yes, that could mean that you have an overflow.<br />
There are several ways to find out what is causing it.<br />
Old school, use print statements in your code and check certain parameters.<br />
More modern, use Visual Studios features like Analyzer and Debugger to see what is going on.<br />
I assume you are using Visual Studio for development,<br />
there is one setting I would suggest to activate, it is to treat every warning as an error.<br />
(Project-&gt;Properties-&gt;Configuration Properties-&gt;C/C+±&gt;General-&gt;Treat warnings as errors-&gt;Yes)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54499</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54499</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 15:51:31 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 15:35:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> No problem. Maybe you could just confirm that this is a memory issue for me? After restarting notepad my plugin seems to work and I can use it over and over again until it fails and then won’t work until I restart notepad. I’m pretty sure this means it’s a memory problem, and I don’t really know where to go from here</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54496</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54496</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 15:35:19 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 15:23:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">Sorry, but there is a small, but unfortunately insurmountable problem,<br />
I cannot program in C++, I am a python junkie :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54495</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54495</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 15:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 15:18:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Would you mind looking at my code for one part of my plugin that is failing?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54494</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54494</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 15:18:53 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 15:10:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">There are several possible data types that can be used, but without knowing your code and concept, it is hard to say what to use.<br />
Personally, I would use INT_PTR, but if your result is ever converted to long, I would probably use LONG_PTR.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54492</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54492</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 01 Jun 2020 15:10:44 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Mon, 01 Jun 2020 13:20:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> As I said, I am very new at this so I thought I would just make sure I am understanding you correctly. I am assuming I use LONG_PTR instead of int, correct?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54487</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54487</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Mon, 01 Jun 2020 13:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Sat, 30 May 2020 11:55:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a> said in <a href="/post/54437">Search in target is sometimes failing</a>:</p>
<blockquote>
<p dir="auto">So how would I prevent it from overflowing?</p>
</blockquote>
<p dir="auto">Not sure I understand this question because I guess you know the obvious answer,<br />
which would be <em>“use a datatype which is big enough to hold the values”</em>, yourself.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54452</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54452</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 30 May 2020 11:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Fri, 29 May 2020 16:05:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> So how would I prevent it from overflowing?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54437</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54437</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Fri, 29 May 2020 16:05:57 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Thu, 28 May 2020 21:13:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a></p>
<p dir="auto">By the way, you defined your start and end being ints.<br />
But <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage" rel="nofollow ugc">SendMessage</a> returns an <a href="https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types#LRESULT" rel="nofollow ugc">LRESULT</a> which is defined as <a href="https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types#LONG_PTR" rel="nofollow ugc">LONG_PTR</a>, so just be careful because a <a href="https://www.scintilla.org/ScintillaDoc.html#position" rel="nofollow ugc">position</a> might overflow it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54424</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54424</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 28 May 2020 21:13:51 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Thu, 28 May 2020 21:09:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-goddard" aria-label="Profile: Peter-Goddard">@<bdi>Peter-Goddard</bdi></a> said in <a href="/post/54420">Search in target is sometimes failing</a>:</p>
<blockquote>
<p dir="auto">Okay, thanks, as I said, I have limited experience with any of this stuff. I have only just started to program and I really appreciate you helping me out.</p>
</blockquote>
<p dir="auto">I understand,  I’m not a programmer but have muddled my way through Scintilla docs and other N++ plugins and been able to hack together some working code.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> has it right about Unicode / ANSI.  By default, all N++ plugins are compiled for Unicode as N++ no longer published an ANSI version.  So the difference in your plugin when handling text in N++ documents (like searching for it)  is to expect Unicode.</p>
<p dir="auto">You’ll probably see character strings in N++ plugins initialized with:</p>
<pre><code>TCHAR cString[MAX_PATH];
</code></pre>
<p dir="auto">since this can be ANSI or Unicode depending on compiler switches and that was needed back when there was an ANSI N++.</p>
<p dir="auto"><a href="https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/tchar" rel="nofollow ugc">https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/tchar</a></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54423</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54423</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Thu, 28 May 2020 21:09:23 GMT</pubDate></item><item><title><![CDATA[Reply to Search in target is sometimes failing on Thu, 28 May 2020 21:03:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a></p>
<p dir="auto">After testing, SCI_TARGETFROMSELECTION, I think you may have been right. This seems to have fixed it</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54422</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54422</guid><dc:creator><![CDATA[Peter Goddard]]></dc:creator><pubDate>Thu, 28 May 2020 21:03:38 GMT</pubDate></item></channel></rss>