1. Ferdinand Fischer
  2. PowerBuilder
  3. Wednesday, 28 November 2018 08:19 AM UTC

Hi,

 

i am trying to pass a structure to a c# dll, but i cant get it to work.
I can pass simple datatypes like long and string.
But when i use a struct with only a string, the string gets mangled.


I have a read that you have to padd structure but dont know how.

Any suggestions?

 

Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 28 November 2018 12:45 PM UTC
  2. PowerBuilder
  3. # 1

Have you tried using a nvo instead of a structure?  Just create instance variables on the nvo for your attributes.

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 28 November 2018 14:54 PM UTC
FYI: C# would definitely not understand specific PB object classes.
  1. Helpful
  1. Kevin Ridley
  2. Wednesday, 28 November 2018 17:15 PM UTC
Wouldn't it understand it if it was a PB .NET assembly?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 28 November 2018 17:33 PM UTC
Good question on that aspect as its not really a standard PB System Object Class. I think that should work OK (non-visual one only of course).
  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.
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.