<?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: Error 1 error C3861: 'MustSwitchTo_acedCmdC_or_acedCmdS': identifier not fou in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/6987137#M8419</link>
    <description>&lt;P&gt;ads_cmd() is defined in adsmigr.h. &lt;/P&gt;
&lt;P&gt;Until ARX2014 it was defined as acedCmd().&lt;/P&gt;
&lt;P&gt;Starting with ARX2015 AutoCAD switched over to "fiberless operation".&lt;/P&gt;
&lt;P&gt;Due to this breaking change acedCmd() must be replaced bei either acedCmdS() or acedCmdC().&lt;/P&gt;
&lt;P&gt;The same change applies for ads_command() / acedCommand().&lt;/P&gt;
&lt;P&gt;Please read the docs about "fiberless operation".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recomment to avoid acedCmd*() / acedCmd*() whereever possible.&lt;/P&gt;
&lt;P&gt;If you are lucky you can use the "S-type" functions. The usage of the "C-type" functions is horrible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 13:01:34 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2017-03-31T13:01:34Z</dc:date>
    <item>
      <title>Error 1 error C3861: 'MustSwitchTo_acedCmdC_or_acedCmdS': identifier not found</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/6986882#M8418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm programming with C++ (VS 2012) using ObjectARX 2016&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a line:- &amp;nbsp; &amp;nbsp; &amp;nbsp;if (ads_cmd(rbCommandList) != RTNORM) {......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ads_cmd gives the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error 1 error C3861: 'MustSwitchTo_acedCmdC_or_acedCmdS': identifier not found&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that this is defined in adsmigr.h as:-&lt;/P&gt;
&lt;P&gt;#define ads_cmd MustSwitchTo_acedCmdC_or_acedCmdS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I correct this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:52:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/6986882#M8418</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2017-03-31T10:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 error C3861: 'MustSwitchTo_acedCmdC_or_acedCmdS': identifier not fou</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/6987137#M8419</link>
      <description>&lt;P&gt;ads_cmd() is defined in adsmigr.h. &lt;/P&gt;
&lt;P&gt;Until ARX2014 it was defined as acedCmd().&lt;/P&gt;
&lt;P&gt;Starting with ARX2015 AutoCAD switched over to "fiberless operation".&lt;/P&gt;
&lt;P&gt;Due to this breaking change acedCmd() must be replaced bei either acedCmdS() or acedCmdC().&lt;/P&gt;
&lt;P&gt;The same change applies for ads_command() / acedCommand().&lt;/P&gt;
&lt;P&gt;Please read the docs about "fiberless operation".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recomment to avoid acedCmd*() / acedCmd*() whereever possible.&lt;/P&gt;
&lt;P&gt;If you are lucky you can use the "S-type" functions. The usage of the "C-type" functions is horrible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 13:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/6987137#M8419</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-03-31T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 error C3861: 'MustSwitchTo_acedCmdC_or_acedCmdS': identifier not fou</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/6987227#M8420</link>
      <description>Many thanks for your help.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;This email has been checked for viruses by Avast antivirus software.&lt;BR /&gt;&lt;A href="https://www.avast.com/antivirus" target="_blank"&gt;https://www.avast.com/antivirus&lt;/A&gt;</description>
      <pubDate>Fri, 31 Mar 2017 13:37:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/6987227#M8420</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2017-03-31T13:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 error C3861: 'MustSwitchTo_acedCmdC_or_acedCmdS': identifier not fou</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/7332551#M8421</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have had the same problem, and with the help of the arx's&amp;nbsp;migration guide, I could see that I have to change acedCmd for (acedCmdS/acedCmdC).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have began changing them for acedCmdS, but I am having an error with the command "Break" when I want to break a line. This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ads_name&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; NameSegment;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;VOK&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(acdbGetAdsName(NameSegment, GetObjectID()));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ads_point&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; PointBreakNode={BreakPoint.x, BreakPoint.y, 0};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//create break command&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;struct&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;resbuf&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;* pCommand = acutBuildList(&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;RTSTR&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;L"_.BREAK"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;RTENAME&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, NameSegment,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;RTPOINT&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;,PointBreakNode,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;RTNONE&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;ALLOW_NEXT_COMMAND&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//int nResult=acedCmd(pCommand); //My old code&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;int&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; nResult = acedCmdS(pCommand);//My new code&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;The message error is the following:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Exception thrown at 0x000007FED35F1157 (accore.dll) in acad.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.&lt;/P&gt;&lt;P&gt;If there is a handler for this exception, the program may be safely continued."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;If anyone have experimented a similar situation and could give me any clue to solve it,&amp;nbsp;I will be thankful.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 08:49:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-1-error-c3861-mustswitchto-acedcmdc-or-acedcmds-identifier/m-p/7332551#M8421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-28T08:49:26Z</dc:date>
    </item>
  </channel>
</rss>

