Migrate from Visual Studio 2019 to Visual Studio 2022 for AutoCAD2024

Migrate from Visual Studio 2019 to Visual Studio 2022 for AutoCAD2024

hypertent
Enthusiast Enthusiast
735 Views
2 Replies
Message 1 of 3

Migrate from Visual Studio 2019 to Visual Studio 2022 for AutoCAD2024

hypertent
Enthusiast
Enthusiast

I am building up my ObjectARX2024 program for AutoCAD 2024. The codes are from my ObjectARX2023 program (AutoCAD2023). I installed ObjectARX2024 and configured project parameters in my Visual Studio 2022 project properties. The debug and release versions of this program were compiled and built very smoothly and successfully.

 

But when I tested the debug version of the program, a lot of errors happened: first of all, I could not debug the code step by step like my previous ObjectARX program, even though I pointed the working directory of my program to the Autoload Plugin folder.

 

Working Directory: ..\..\Program Files\Autodesk\ApplicationPlugins\MyObject.bundle\Contents

 

Secondly, the line I set the breaking point on didn't stop during the debugging. 

 

Thirdly, some codes were not executed during the debug. I had some UI interface security dialog codes which were not executed during the debugging.

 

Fourthly, I ran some commands at release version, but ended up crashed during the debugging, see attached picture. 

 

What happened to the Visual Studio 2022? Why the same codes working for VS2019 and AutoCAD2023 but not working for VS2022 and AutoCAD2024. What are new features of ObjectARX2024 compared with ObjectARX2023? Do I need to upgrade some linked libraries such as rxapi.lib for my new ObjectARX2024 program?

 

The ObjectARX libraries I am using are:

rxapi.lib

acdb24.lib

acge24.lib

acad.lib

acui24.lib

actst24.lib

accore.lib

AcPal.lib

adui24.lib

aNav.lib

 

Any replied will be appreciated, thanks.

 

Accepted solutions (2)
736 Views
2 Replies
Replies (2)
Message 2 of 3

tbrammer
Advisor
Advisor
Accepted solution

Are you sure that AutoCAD loads the correct ARX? Check while debugging in Visual Studio with the "Modules" window [Ctrl-Alt-U]:

tbrammer_0-1707745208787.png

Do you use the project setting General->Platform Toolset = "Visual Studio 2022 (v143)"?

 


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
Message 3 of 3

hypertent
Enthusiast
Enthusiast
Accepted solution

Thanks for your reply. Yes I am using Visual Studio 2022(v143). I did fix the error. 

0 Likes