<p>I have a .rc file which is used to include some text data in my executable, like this:</p>

<pre><code>1234 RCDATA myfile.txt
</code></pre>

<p>This works fine: the content of the 'myfile.txt' is included in my executable.
The problem is that no 0-terminator is added to the string, and I cannot add it to the file. Is there any way of adding a 0-terminator from within the .rc file? Something like this:</p>

<pre><code>1234 RCDATA { myfile.txt, "\0" }         // error RC2104
</code></pre>

<p>Note that I already found this solution, but I am looking for something more elegant.</p>

<pre><code>1234 RCDATA myfile.txt
1235 RCDATA { "\0" }
</code></pre>

<p>Thanks alot,
eli</p>

I don't think so, unless you write your own resource compiler.
I have not meet one which allowed to build one resource from several sources.
You may write a small utility to add a trailing '\0' to a file, say makeZ.exe,
and set an additional build step:
```
```
makeZ myfile.txt myfileZ.txt
```
```
In you .rc there will be
```
```
1234 RCDATA myfileZ.txt
```
```