<?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: Errors from 2022 SDK files in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10290205#M5360</link>
    <description>&lt;P&gt;While this would work to fix the issue on my end.&amp;nbsp; This would not solve fixing the issue for the entire team and future development.&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 17:08:36 GMT</pubDate>
    <dc:creator>tboggsKFHNT</dc:creator>
    <dc:date>2021-05-04T17:08:36Z</dc:date>
    <item>
      <title>Errors from 2022 SDK files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10287229#M5358</link>
      <description>&lt;P&gt;Hi everyone.&amp;nbsp; So I'm using vs 2019 for compiling my plugin.&amp;nbsp; I've created my plugin so that I have multiple versions that work for 3ds max 2019, 2020, 2021.&amp;nbsp; I have downloaded the 2022 SDK and have specified throughout my code for functions that have been updated from 2021 to 2022 and so on.&amp;nbsp; My code compiles and builds for the 2021 version.&amp;nbsp; However, I am receiving errors from the maxtypes.h and matrix3.h header files when building the 2022 version.&amp;nbsp; VS is telling me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;illegal statement or sub-expression for constexpr in the TimeToTicksSec function of the maxtypes.h file&lt;/LI&gt;&lt;LI&gt;'a' and 'b' cannot be modified because it is being accessed through a const object for the SetPartA and SetPartB functions of the maxtypes.h file&lt;/LI&gt;&lt;LI&gt;'return': cannot convert from 'const Class_ID to 'Class_ID &amp;amp;' for the Class_ID = operator in the maxtypes.h file&lt;/LI&gt;&lt;LI&gt;attribute 'decprecated("Matrix3 and DMatrix3 are now initialized to identity by default&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I understand the last one means that the Matrix3(BOOL) constructor doesn't need to be used.&amp;nbsp; However, I am unsure of how to silence this warning as described in the header file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where these errors coming from in my code?&amp;nbsp; What is making them appear?&amp;nbsp; Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot show my code as the code itself is confidential.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 14:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10287229#M5358</guid>
      <dc:creator>tboggsKFHNT</dc:creator>
      <dc:date>2021-05-03T14:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from 2022 SDK files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10289775#M5359</link>
      <description>&lt;P&gt;just edit the max headers&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 14:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10289775#M5359</guid>
      <dc:creator>klvnk</dc:creator>
      <dc:date>2021-05-04T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from 2022 SDK files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10290205#M5360</link>
      <description>&lt;P&gt;While this would work to fix the issue on my end.&amp;nbsp; This would not solve fixing the issue for the entire team and future development.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 17:08:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10290205#M5360</guid>
      <dc:creator>tboggsKFHNT</dc:creator>
      <dc:date>2021-05-04T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from 2022 SDK files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10290405#M5361</link>
      <description>&lt;P&gt;guess your going to need to read up on&amp;nbsp;&lt;SPAN&gt;constexpr then.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 18:25:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10290405#M5361</guid>
      <dc:creator>klvnk</dc:creator>
      <dc:date>2021-05-04T18:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from 2022 SDK files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10292227#M5362</link>
      <description>&lt;P&gt;I understand constexpr.&amp;nbsp; My issue is that I never explicitly call the TimeToTicksSec() function so I'm unsure where the function is being called from.&amp;nbsp; Is there a resource that shows all of the functions/classes/objects that call TimeToTicksSec()?&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 13:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10292227#M5362</guid>
      <dc:creator>tboggsKFHNT</dc:creator>
      <dc:date>2021-05-05T13:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from 2022 SDK files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10292940#M5363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10431573"&gt;@tboggsKFHNT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Compiling a plugin for different versions of 3ds Max and using different versions of the VS toolset can bring a lot of issues. I concur.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that even though you are using VS 2019, that you might be not using the appropriate compiler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you are using the proper toolset and 3ds Max SDK version when building your plugin for a given 3ds Max version. For each of the 3ds Max SDK, t&lt;SPAN&gt;here are a&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;WindowsTargetPlatformVersion&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;PlatformToolset&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;properties in the Max SDK from file&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;maxsdk\ProjectSettings\propertySheets\3dsmax.general.project.settings.props&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;which creates the proper build environment, specific to the targeted 3ds Max version. It needs to be taken into account when compiling a plugin. In fact, the specific props file should be included in your VS project (vcxproj) and make sure the SDK source is the one for the targeted 3ds Max version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, this will not resolve all the problems you have. You might also have to adapt you code to changes we have made to the 3ds Max SDK (const references or deprecated methods).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope it helps. You should not have to tweak the SDK to solve part of the problems you are going thru.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 18:12:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/errors-from-2022-sdk-files/m-p/10292940#M5363</guid>
      <dc:creator>eric.brosseau</dc:creator>
      <dc:date>2021-05-05T18:12:40Z</dc:date>
    </item>
  </channel>
</rss>

