1. Ed Van Haren
  2. PowerBuilder
  3. Monday, 16 September 2024 17:04 PM UTC

We current use a 3rd party ActiveX control (Accusoft ImageGear) from years ago in our classic PB apps. They do not have ActiveX controls anymore. They only have .Net components. If we want to upgrade, is the best approach to create an ActiveX control (as described in this old article: How to use .Net visual controls in PowerBuilder Cl... - SAP Community)?

Are there better approaches to do this?

 

TIA,

Ed

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 September 2024 00:54 AM UTC
  2. PowerBuilder
  3. # 1

If it's a non-visual DLL you can use the .NET DLL Importer feature of PB 2022 R3.

Comment
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Monday, 16 September 2024 19:30 PM UTC
  2. PowerBuilder
  3. # 2

Unfortunately, Microsoft abandoned the Interop Forms Toolkit that solution was based on.  It's still accessible on archive.org and there are some folks try to make it still work with more recent versions of Visual Studio:  https://github.com/hurcane/Microsoft.InteropFormTools.InteropFormProxyGenerator.  However, I wouldn't recommend relying on it anymore.

The toolkit just makes the task easier, the underlying functionality is still supported by .Net.  There's a rather old blog article on the Telerik site that explains how to do it without using the toolkit.  To be honest though, I haven't tried it out to see if it still works:  https://www.telerik.com/blogs/wrapping-a-net-user-control-as-an-activex

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.