1. Brian Espinosa
  2. SnapDevelop
  3. Wednesday, 10 January 2024 18:34 PM UTC

I have some C# code that that is already written in Snap Develop and I  need to make a call to that code from within Power Builder to get a value. How can I do that?

Brian Espinosa Accepted Answer Pending Moderation
  1. Friday, 12 January 2024 14:09 PM UTC
  2. SnapDevelop
  3. # 1

I finally had a chance to try this and I am getting the exception from screen shot below. I have tried adding the reference manually, still no go. I can run the app manually from Snap Develop and it works, but when I am debugging from Power Builder is the only time I get this exception. Also I found this page, https://docs.appeon.com/policies/Appeon_SnapDevelop_2022R3_FreeDownloadTerms.pdf  , it references version 6.0.0 not sure if it is related.

Comment
  1. Francisco Martinez @Appeon
  2. Friday, 12 January 2024 14:17 PM UTC
You need to also include the DLL dependencies along with your binary. For this, I suggest you use the "Publish" action on your project. This should generate your assembly's DLL accompanied by its dependencies. You then take all these files with you wherever you move your assembly to.



Regards - Francisco
  1. Helpful
  1. Brian Espinosa
  2. Friday, 12 January 2024 15:34 PM UTC
Ok, lets say i have a project in this solution called "SampleProject" it is creating many DLLs in the publish path. Which of these do I pick from Power Builder in the .NET DLL Importer?
  1. Helpful
  1. Brian Espinosa
  2. Tuesday, 16 January 2024 15:34 PM UTC
I am not able to get it to work. The app just crashes. is there any way i can schedule a meeting with you via My companies meeting to your email before? We have licenses here and it comes with support, how do i initiate the support ticket, this is very high priority.
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 January 2024 18:52 PM UTC
  2. SnapDevelop
  3. # 2

Hi Brian,

 

Please see this section in the documentation which addresses how to call C# code from PowerBuilder:

https://docs.appeon.com/pb2021/application_techniques/Calling_C_Assembly_in_an_Application.html

 

Hope this helps.

 

Regards,
Francisco

Comment
  1. Francisco Martinez @Appeon
  2. Wednesday, 10 January 2024 19:12 PM UTC
Happy to help!
  1. Helpful
  1. Brian Espinosa
  2. Tuesday, 16 January 2024 21:20 PM UTC
I am not able to get it to work. The app just crashes. is there any way i can schedule a meeting with you via My companies meeting to your email before? We have licenses here and it comes with support, how do i initiate the support ticket, this is very high priority.
  1. Helpful
  1. Francisco Martinez @Appeon
  2. Tuesday, 16 January 2024 21:27 PM UTC
Hi Brian,

I sent you an email to try an schedule a meeting but I have received no response as of right now. Please check your email so that we can schedule a meeting and help you with this issue
  1. Helpful
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.