This function or variable may be unsafe. To disable deprecation, use _CRT_SECURE_NO_WARNINGS
<p>I'm working on a C++ DDL, however I get the following issue in some places:</p>

<pre><code>C4996 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
</code></pre>

<p>I did try <code>#define _CRT_SECURE_NO_WARNINGS</code>, but the issue remains.<br>
This is the code: </p>

<pre><code>sprintf(szDebugString, "%s: 0x%x (%s%s%i)", ptrName, (DWORD)funcPtr, interfaceName, interfaceVersion.c_str(), i);
</code></pre>