<?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: undeclared identifier error when using ACRX_T in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084769#M20541</link>
    <description>ACRX_T is for literal strings.  Change the type of plotCfgchar to const &lt;BR /&gt;
ACHAR* instead. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BARTS007&gt; wrote in message news:5740968@discussion.autodesk.com...&lt;BR /&gt;
I'm converting an application (created with VS2002) that works with AutoCAD &lt;BR /&gt;
2006 to work with AutoCAD 2007 and I also switched to VS2005.&lt;BR /&gt;
I got error C2664: 'AcDbPlotSettings::getPlotCfgName' : cannot convert &lt;BR /&gt;
parameter 1 from 'const char *' to 'const ACHAR *&amp;amp;'&lt;BR /&gt;
&lt;BR /&gt;
So I added ACRX_T like so:&lt;BR /&gt;
const char* plotCfgchar;&lt;BR /&gt;
pPlotSettings-&amp;gt;getPlotCfgName( ACRX_T(plotCfgchar) );&lt;BR /&gt;
But now I get a different error:&lt;BR /&gt;
error C2065: 'LplotCfgchar' : undeclared identifier&lt;BR /&gt;
&lt;BR /&gt;
Any idea what the solution is?&lt;BR /&gt;
Thanks&lt;/BARTS007&gt;</description>
    <pubDate>Thu, 04 Oct 2007 20:59:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-10-04T20:59:20Z</dc:date>
    <item>
      <title>undeclared identifier error when using ACRX_T</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084768#M20540</link>
      <description>I'm converting an application (created with VS2002) that works with AutoCAD 2006 to work with AutoCAD 2007 and I also switched to VS2005.&lt;BR /&gt;
I got error C2664: 'AcDbPlotSettings::getPlotCfgName' : cannot convert parameter 1 from 'const char *' to 'const ACHAR *&amp;amp;'&lt;BR /&gt;
	&lt;BR /&gt;
So I added ACRX_T like so:&lt;BR /&gt;
	const char* plotCfgchar;&lt;BR /&gt;
	pPlotSettings-&amp;gt;getPlotCfgName( ACRX_T(plotCfgchar) );&lt;BR /&gt;
But now I get a different error:&lt;BR /&gt;
error C2065: 'LplotCfgchar' : undeclared identifier&lt;BR /&gt;
&lt;BR /&gt;
Any idea what the solution is?&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 04 Oct 2007 20:21:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084768#M20540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-04T20:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: undeclared identifier error when using ACRX_T</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084769#M20541</link>
      <description>ACRX_T is for literal strings.  Change the type of plotCfgchar to const &lt;BR /&gt;
ACHAR* instead. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BARTS007&gt; wrote in message news:5740968@discussion.autodesk.com...&lt;BR /&gt;
I'm converting an application (created with VS2002) that works with AutoCAD &lt;BR /&gt;
2006 to work with AutoCAD 2007 and I also switched to VS2005.&lt;BR /&gt;
I got error C2664: 'AcDbPlotSettings::getPlotCfgName' : cannot convert &lt;BR /&gt;
parameter 1 from 'const char *' to 'const ACHAR *&amp;amp;'&lt;BR /&gt;
&lt;BR /&gt;
So I added ACRX_T like so:&lt;BR /&gt;
const char* plotCfgchar;&lt;BR /&gt;
pPlotSettings-&amp;gt;getPlotCfgName( ACRX_T(plotCfgchar) );&lt;BR /&gt;
But now I get a different error:&lt;BR /&gt;
error C2065: 'LplotCfgchar' : undeclared identifier&lt;BR /&gt;
&lt;BR /&gt;
Any idea what the solution is?&lt;BR /&gt;
Thanks&lt;/BARTS007&gt;</description>
      <pubDate>Thu, 04 Oct 2007 20:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084769#M20541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-04T20:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: undeclared identifier error when using ACRX_T</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084770#M20542</link>
      <description>Owen, thanks a lot, this cut my errors in half.&lt;BR /&gt;
It’s just that in some cases it created a chain reaction. For example:&lt;BR /&gt;
I changed &lt;BR /&gt;
Cstring choixFich; to ACHAR choixFich;&lt;BR /&gt;
And now I get error C2440: '=' : cannot convert from 'CString' to 'ACHAR'&lt;BR /&gt;
On this line:&lt;BR /&gt;
choixFich = fDlg.GetPathName();&lt;BR /&gt;
&lt;BR /&gt;
GetPathName is defined in:&lt;BR /&gt;
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxdlgs.h&lt;BR /&gt;
CString GetPathName() const;  // return full path and filename&lt;BR /&gt;
I imagine I should not change the definition in afxdlgs.h&lt;BR /&gt;
&lt;BR /&gt;
Should the Cstring be treated differently?&lt;BR /&gt;
Thanks

Message was edited by: Barts007</description>
      <pubDate>Fri, 05 Oct 2007 12:10:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084770#M20542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-05T12:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: undeclared identifier error when using ACRX_T</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084771#M20543</link>
      <description>It sounds to me like you are creating serious problems for yourself. I &lt;BR /&gt;
recommend that you find an experienced C++ programmer to help you with this &lt;BR /&gt;
project. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BARTS007&gt; wrote in message news:5741475@discussion.autodesk.com...&lt;BR /&gt;
Owen, thanks a lot, this cut my errors in half.&lt;BR /&gt;
It's just that in some cases it created a chain reaction. For example:&lt;BR /&gt;
I changed&lt;BR /&gt;
Cstring choixFich; to ACHAR choixFich;&lt;BR /&gt;
And now I get error C2440: '=' : cannot convert from 'CString' to 'ACHAR'&lt;BR /&gt;
On this line:&lt;BR /&gt;
choixFich = fDlg.GetPathName();&lt;BR /&gt;
&lt;BR /&gt;
GetPathName is defined in:&lt;BR /&gt;
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxdlgs.h&lt;BR /&gt;
CString GetPathName() const;  // return full path and filename&lt;BR /&gt;
I imagine I should not change the definition in afxdlgs.h&lt;BR /&gt;
&lt;BR /&gt;
Should the Cstring be treated differently?&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Barts007&lt;/BARTS007&gt;</description>
      <pubDate>Fri, 05 Oct 2007 17:24:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/undeclared-identifier-error-when-using-acrx-t/m-p/2084771#M20543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-05T17:24:11Z</dc:date>
    </item>
  </channel>
</rss>

