Error reading characters of string, VSCommunity2015
<p>No matter what I do, the Visual Studio Community 2015 debugger tells me that <code>it cannot read the characters of a string (res_path)</code> I declared:</p>

<pre><code>bool loadBMP() {

    bool success = true;

    std::string res_path = "res\\pixelhome.bmp";

    bmp = SDL_LoadBMP(res_path.c_str());

    if (bmp == NULL) {

        std::cout &lt;&lt; "SDL_IMAGE_ERROR: " &lt;&lt; SDL_GetError() &lt;&lt; std::endl;

        success = false;

    }

    return success;
}
</code></pre>

<p>I also tried to set <code>res_path</code> to <code>NULL</code> and then setting the string to <code>"res\\pixelhome.bmp"</code> but got the same error. What am I missing?</p>

<p><a href="http://i.stack.imgur.com/MctRH.png" rel="nofollow">Error message</a></p>