I tried to call COM object created by C# from other C# module.
I did:
1. Create simple COM object by C#
2. Register it
3. Try to call this COM from other C# console application - it works fine
4. Create simple AutoCad module by C# with IExtensionApplication
5. Try to call this module from AutoCAD - it works
6. In Initialize() method I wrote:
Type myClassAdapterType = Type.GetTypeFromProgID("CoreAdapter.CoreAdapterClass");
acDoc.Editor.WriteMessage("Type is OK: {0}", myClassAdapterType.FullName);
object myClassAdapterInstance = Activator.CreateInstance(myClassAdapterType);
acDoc.Editor.WriteMessage("Created");
6. Open AutoCAD again
7. Load my module
8. I saw "Type is OK" (becase it was registered in registry)
But I can't create instance.
Can you help me?
Hi
It is tough to suggest from the information you have provide.
So, I will try to suggest few suggestions…