1. Vladimir K.
  2. PowerBuilder
  3. Thursday, 4 June 2020 17:39 PM UTC

Appeon PowerBuilder R2 build 2328

MSSQL 2008

Hi All.

I have newer work with something this before, so any help/directions will be greatly appreciated.

So, i got a package, please see attached: ATGCommonLib.dll.rar

I did modify ATGCommonLib.dll.config to mask server, database, user and password.

When i try to use new .NET DLL Importer tool, i am getting Failed Items with a tip: Unsupported .....

… the workaround is to create a .NET wrapper for the function before importing.

Please see attached: dll-importer.jpg

I don't have any experience with .net, but i have someone who does.

What do we need to do to make it work?

Right now we calling .exe to execute .net code, but i really like to walk away from .exe's, include .net .dll's into installation package and call those .dll's from pb code.

One's again any help/directions will be greatly appreciated.

Thank you

Sincerely

Vlad

Attachments (2)
armando herrera @Appeon Accepted Answer Pending Moderation
  1. Thursday, 4 June 2020 20:15 PM UTC
  2. PowerBuilder
  3. # 1

Hi Vladimir,

The framework type specifies the framework for the assembly; it can be the .NET Framework or .NET Core. Different functions will be used to load the DLL. For .NET Framework type, the LoadWithDotNetFramework function will be used, for .NET Core, the LoadWithDotNetCore function will be used.

You can edit the Source .NET DLL field to specify the relative path for the .NET DLL file. The DLL file will be loaded when the cursor is moved away from this field.

 

Please refer to this link:

https://docs.appeon.com/appeon_online_help/pb2019r2/application_techniques/ch20s02.html

 

Regards! 

Comment
  1. Vladimir K.
  2. Thursday, 4 June 2020 21:05 PM UTC
Thank you Armando.

Will poke around.

  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 4 June 2020 19:47 PM UTC
  2. PowerBuilder
  3. # 2

Hi Vladimir,

 

Ok, so I guess the firs obvious question is: Do your dll's have any functions that accept or return any class or structure in it?

 

 

Regards,

Comment
  1. Vladimir K.
  2. Thursday, 4 June 2020 21:06 PM UTC
Hi Govinda.



Yes.
  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.