Reference configuration compatibility due to IJCAD version differences

Asked 1 years ago, Updated 1 years ago, 382 views

We are developing the C#.Net app in an environment where IJCAD 2021 Pro is included.The reference is "GcadVbaLib".
If you run the release build application on another PC (IJCAD2020Std) environment, you will get an "class not registered" error when you move the IJCAD.Is it possible that the reason for this is because it was made in a higher version?When I was using AutoCad, I often had errors due to different versions.

c# ijcad

2022-09-30 21:58

1 Answers

IJCAD VBA components do not guarantee forward or backward compatibility.You must match the exact version.

参照Please enable the referenced Object Library to match the product version.

For the time being, C# can use the reflection API or the dynamic type for dynamic duck typing.
By leveraging them, you can write compatible COM client code without adding reference settings, but you can't type or symbol check at compile time and try to resolve all symbols at run time, which greatly reduces development and execution efficiency.

Generally speaking, most libraries in the world are backward compatible but not forward compatible.Forward compatibility makes it difficult to add new features (new classes and methods) to the library.In other words, applications that assume a newer version of the dynamic link library will not work properly in environments where older versions of the dynamic link library are installed.


2022-09-30 21:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.