<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ads_printf problem in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989218#M8408</link>
    <description>&lt;P&gt;Fantastic! That sorted it, thanks very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2017 16:10:50 GMT</pubDate>
    <dc:creator>DWhiteley</dc:creator>
    <dc:date>2017-04-01T16:10:50Z</dc:date>
    <item>
      <title>ads_printf problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989149#M8404</link>
      <description>&lt;P&gt;Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got some old code with this defined:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#define DEBUGSTR(str) ads_printf("\n%s Line: %d String "&amp;nbsp;#str " = '%s'", __FILE__, __LINE__, str)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the call is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if (DEBUG_COMMAND_ERROR()) DEBUGSTR(_LAYER);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_LAYER is defined as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#define _LAYER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "_.LAYER\0"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error 2 error C2664: 'acutPrintf' : cannot convert parameter 1 from 'const char [31]' to 'const ACHAR *'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I obviously need to make it UNICODE correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone point in the right direction on how to fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 14:56:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989149#M8404</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2017-04-01T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: ads_printf problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989155#M8405</link>
      <description>&lt;PRE&gt;#define DEBUGSTR(str) acutPrintf(L"\n%s Line: %d String " #str L" = '%s'", __FILE__, __LINE__, str)

#define _LAYER        L"_.LAYER\0"
&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Apr 2017 15:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989155#M8405</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-04-01T15:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: ads_printf problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989177#M8406</link>
      <description>&lt;P&gt;Thanks for that Alexander&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I'm getting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error 1 error C2308: concatenating mismatched strings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 15:26:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989177#M8406</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2017-04-01T15:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: ads_printf problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989201#M8407</link>
      <description>&lt;PRE&gt;#define WIDEN2(x) L ## x
#define WIDEN(x) WIDEN2(x)
#define __WFILE__ WIDEN(__FILE__)

#define DEBUGSTR(str) acutPrintf(L"\n%s Line: %d String " #str L" = '%s'", __WFILE__, __LINE__, str)
#define _LAYER        L"_.LAYER\0"
void CheckDebugStr()
{
  DEBUGSTR(_LAYER);
}
&lt;/PRE&gt;
&lt;P&gt;Result of execution code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;acrxEntryPoint.cpp Line: 18 String _LAYER = '_.LAYER'&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Apr 2017 15:45:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989201#M8407</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-04-01T15:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: ads_printf problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989218#M8408</link>
      <description>&lt;P&gt;Fantastic! That sorted it, thanks very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 16:10:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/ads-printf-problem/m-p/6989218#M8408</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2017-04-01T16:10:50Z</dc:date>
    </item>
  </channel>
</rss>

