![]() ![]() Note that every open operation in WRITE mode will trigger a lot of reactors inside AutoCAD database so it is way slower than a READ open. As a matter of fact, the ideal scenario would be changing the open to READ and keep the upgradeOpen() call. This method is only intended to be used when you have an entity opened for READ and want to enable WRITE capability to it.Īt your code you opened the entity for WRITE so you don't need to call upgradeOpen(). ![]() The problem seems to be related to the upgradeOpen() method call. Turn on the _DEBUG symbol if it was defined, before including #include // MFC support for Windows Common Controls #pragma warning(disable:4265)//disable missing virtual destructor warning #include // MFC core and standard components #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #pragma message("Building debug version of this module to be used with non-debug/Prod AutoCAD") #if defined(_DEBUG) & !defined(AC_FULL_DEBUG) Have you checked if your _DEBUG symbol is being properly handled into StdAfx.h?Īs this symbol affects how MFC libraries are compiled you need to wrap the includes with a #if statement like this example (see how the BOLD definitions wrap the includes): On the next post I will explain how to install the ObjectARX Wizard tool.įurther information about Microsoft Visual Studio versions (from Wikipedia): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |