Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Use Wpf window with Archicad 27 addon

hossamamer7
Contributor

Hi folks, 
I'm trying to open a wpf window with the addon I'm working on so I created .net framework class library which has a basic wpf window and I created C++/CLI project which has 2 classes which you will find in attached file

so when I call 
WpfWrapperBridge::ShowWpfWindow(); in
 MenuCommandHandler function the addon is not being detected and I do't find it in ArchiCAD as it's not existed at all but once I remove this call I can find the addon 

can anyone help?

Thaks

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
hossamamer7
Contributor

Since this way didn't work with me, I tried another way which is using COM Interoperability by following steps in this link 
Calling Managed .NET C# COM Objects from Unmanaged C++ Code - CodeProject


View solution in original post

1 REPLY 1
Solution
hossamamer7
Contributor

Since this way didn't work with me, I tried another way which is using COM Interoperability by following steps in this link 
Calling Managed .NET C# COM Objects from Unmanaged C++ Code - CodeProject