<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/wtl/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/wtl/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/wtl/bugs/</id><updated>2026-04-21T10:31:44.903000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#311 AppWizard fails to generate project</title><link href="https://sourceforge.net/p/wtl/bugs/311/?limit=25#fb47/4bbb/c3fc/c4ea/d701/b0b1" rel="alternate"/><published>2026-04-21T10:31:44.903000Z</published><updated>2026-04-21T10:31:44.903000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.netcbefe67d57621bcd1f8e1f672a2dd32c7258c214</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hardcoding is neat, if 'stdafx.cpp' is always the first item and no Non-ASCII exists.&lt;br/&gt;
A solution using substring() needs more urgly codes, and more testing.&lt;br/&gt;
I've tried startsWith(\u...) and substring(1/2/3,etc.) at first,  and then chosen hardcoding at last.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#311 AppWizard fails to generate project</title><link href="https://sourceforge.net/p/wtl/bugs/311/?limit=25#fb47/4bbb/c3fc/c4ea/d701" rel="alternate"/><published>2026-04-21T06:58:05.416000Z</published><updated>2026-04-21T06:58:05.416000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.netaa11933d33d09eb7fd4db5c3a5f5a6e1d4da56f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You are right - this should work.&lt;/p&gt;
&lt;p&gt;However, we can't have hardcoded 'stdafx.cpp' there. We should use substring after BOM.&lt;/p&gt;
&lt;p&gt;Can you also try to identify BOM characters instead of just checking &amp;gt; 128?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br/&gt;
Nenad&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#311 AppWizard fails to generate project</title><link href="https://sourceforge.net/p/wtl/bugs/311/?limit=25#fb47/4bbb/c3fc/762b" rel="alternate"/><published>2026-04-20T14:43:47.177000Z</published><updated>2026-04-20T14:43:47.177000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.net8de1bda05d1af842ebd436cc70d3e6a4f14d5c26</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Now, the WTL10 AppWizard creates project successfully.&lt;/p&gt;
&lt;p&gt;And I'll go one step further to inject WTL dir into VCprj include-dirs section automatically&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#311 AppWizard fails to generate project</title><link href="https://sourceforge.net/p/wtl/bugs/311/?limit=25#fb47/4bbb/c3fc/c4ea" rel="alternate"/><published>2026-04-20T14:33:53.494000Z</published><updated>2026-04-20T14:33:53.494000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.net3d629939a844d65f32886356b731e68adee1aa98</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;works well.  latest WTL10_01: WTL10_01_Release-20260302.zip, or wtl-git-011be908a1122e7bc9fd1106ecc48f22f5f86f00.zip&lt;/p&gt;
&lt;p&gt;Unpack, then execute Setup.js, inject the bold line into WTL10_01\AppWizard\Files\Scripts\1033\default.js&lt;/p&gt;
&lt;p&gt;now,  it works neither utf-8 with BOM or not&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#311 AppWizard fails to generate project</title><link href="https://sourceforge.net/p/wtl/bugs/311/?limit=25#fb47/4bbb/c3fc" rel="alternate"/><published>2026-04-20T05:46:36.796000Z</published><updated>2026-04-20T05:46:36.796000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.net4452c9a74d5b1a0b3a8f3eecf4a3e5d6381cd0f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Have you tested this? I don't think it will help here - the Wizard engine creates and uses a UTF8 file, not WTL&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#311 AppWizard fails to generate project</title><link href="https://sourceforge.net/p/wtl/bugs/311/?limit=25#fb47/4bbb" rel="alternate"/><published>2026-04-16T18:13:27.534000Z</published><updated>2026-04-16T18:13:27.534000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.net58ea15f68001fc173db3cde57856e911d21fc63b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;function AddFilesToCustomProj(...)&lt;br/&gt;
{...&lt;br/&gt;
if (strTpl != '')&lt;br/&gt;
{&lt;br/&gt;
&lt;strong&gt;if(strTpl.charCodeAt(0)&amp;gt;128) strTpl = 'stdafx.cpp';&lt;/strong&gt; // fix: UTF-8 BOM EFBBBF problem&lt;/p&gt;
&lt;p&gt;adding this line, just works&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#344 The first parameter of the SetPanes() method should be const</title><link href="https://sourceforge.net/p/wtl/bugs/344/?limit=25#e04b" rel="alternate"/><published>2026-04-13T03:21:30.566000Z</published><updated>2026-04-13T03:21:30.566000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.net1d932076f620d48617070aac7cf53d7bee57b126</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#344 The first parameter of the SetPanes() method should be const</title><link href="https://sourceforge.net/p/wtl/bugs/344/?limit=25#6d0a" rel="alternate"/><published>2026-04-02T03:57:03.361000Z</published><updated>2026-04-02T03:57:03.361000Z</updated><author><name>Nenad Stefanovic</name><uri>https://sourceforge.net/u/nenadstefanovic/</uri></author><id>https://sourceforge.netbacfc43f93abe6fd0b08bddce342f3c271f0c40e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Nenad Stefanovic&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>The first parameter of the SetPanes() method should be const</title><link href="https://sourceforge.net/p/wtl/bugs/344/" rel="alternate"/><published>2026-04-02T02:52:22.686000Z</published><updated>2026-04-02T02:52:22.686000Z</updated><author><name>UM U</name><uri>https://sourceforge.net/u/umu/</uri></author><id>https://sourceforge.net1e6179eb90aab8b2072346c7472e814ccb85bb51</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Current implementation:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;BOOL SetPanes(int* pPanes, int nPanes, bool bSetText = true)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Suppose we have:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;constexpr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb nb-Type"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;kPanes&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ID_DEFAULT_PANE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ID_FILE_ENCODE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;                                    &lt;/span&gt;&lt;span class="n"&gt;ID_EDIT_MODE&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then &lt;code&gt;SetPanes(kPanes.data(), gsl::narrow_cast&amp;lt;int&amp;gt;(kPanes.size()), false);&lt;/code&gt; will fail to compile now.&lt;/p&gt;
&lt;p&gt;Should be:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SetPanes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;const&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb nb-Type"&gt;int&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pPanes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb nb-Type"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;nPanes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb nb-Type"&gt;bool&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bSetText&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://sourceforge.net/p/wtl/git/merge-requests/6/"&gt;https://sourceforge.net/p/wtl/git/merge-requests/6/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>The first parameter of the SetPanes() method should be const</title><link href="https://sourceforge.net/p/wtl/bugs/344/" rel="alternate"/><published>2026-04-02T02:52:22.686000Z</published><updated>2026-04-02T02:52:22.686000Z</updated><author><name>UM U</name><uri>https://sourceforge.net/u/umu/</uri></author><id>https://sourceforge.net09a2370c4ff46d12a700dabf834587f4d1e18c9e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 344 has been modified: The first parameter of the SetPanes() method should be const&lt;br/&gt;
Edited By: Nenad Stefanovic (nenadstefanovic)&lt;br/&gt;
Owner updated: None =&amp;gt; 'nenadstefanovic'&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>