Thanks for the suggestion; I didn&#39;t realize you could get a pointer to the string itself. Here&#39;s an updated patch. I also changed the wording some more to make it less similar to the native dxdiag.<br><br><div class="gmail_quote">
On Sat, Sep 19, 2009 at 12:05 PM, Henri Verbeet <span dir="ltr">&lt;<a href="mailto:hverbeet@gmail.com">hverbeet@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">2009/9/18 Brian Nguyen &lt;<a href="mailto:mtxcoll@gmail.com">mtxcoll@gmail.com</a>&gt;:<br>
</div><div class="im">&gt; Here&#39;s an updated patch that stores the string in an En.rc resource file and<br>
&gt; loads it using a wrapper for LoadString. How does this look?<br>
&gt;<br>
</div>I think that should work, but how about something like this:<br>
<br>
static const WCHAR *DxDiag_LoadString(UINT id)<br>
{<br>
 � �static const WCHAR failed[] = { &#39;F&#39;, &#39;a&#39;, &#39;i&#39;, &#39;l&#39;, &#39;e&#39;, &#39;d&#39;, &#39;!&#39;, &#39;\0&#39; };<br>
 � �const WCHAR *ret;<br>
<br>
 � �if (!LoadStringW(GetModuleHandleW(NULL), id, (WCHAR *)&amp;ret, 0))<br>
 � �{<br>
 � � � �WINE_FIXME(&quot;Failed to load string %u, last error %u.\n&quot;,<br>
 � � � � � � � �id, GetLastError());<br>
 � � � �return failed;<br>
 � �}<br>
<br>
 � �return ret;<br>
}<br>
<br>
&gt; + � �DXDIAG_MESSAGE_HELP,<br>
You have a trailing space here.<br>
</blockquote></div><br><br clear="all"><br>-- <br>Brian Nguyen<br><a href="mailto:mtxcoll@gmail.com">mtxcoll@gmail.com</a><br>