Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is using nullptr (instead of NULL) valid in an Inventor Addin?

2 REPLIES 2
Reply
Message 1 of 3
oransen
359 Views, 2 Replies

Is using nullptr (instead of NULL) valid in an Inventor Addin?

Is using nullptr (instead of NULL) valid in an Inventor Addin?

 

(I'm trying to drag myself into the second decade of the 21st century)

 

2 REPLIES 2
Message 2 of 3
adam.nagy
in reply to: oransen

Hi,

 

What you are doing outside the Inventor API function calls is up to you and I don't think it matters. And when calling Inventor API functions then if it compiles and works OK, then it's OK. 🙂

Not sure which Inventor API function is accepting NULL as input where you would pass nullptr instead. Do you have one in mind?

And again, Inventor API is COM, so if a COM API function call can handle nullptr as input param value instead of NULL, then the Inventor one should be OK with it as well.

 

Cheers,



Adam Nagy
Autodesk Platform Services
Message 3 of 3
oransen
in reply to: adam.nagy

I think I'm still in ObjectARX mode where the C++ code is much more closely intertwined with AutoCAD.

 

It could well be that my question makes no sense in COM + Inventor, as you suggest...!

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report