How to pass & return string parameters to Delphi-dll?

  • Thread starter Thread starter Michael B.
  • Start date Start date
M

Michael B.

Any help would be appreciated:
We have a Delphi-dll /w functions getting and returning strings
e.g. function test1(aString: string):string:stdcall;

We call from within .NET:
string y;
string x;

y=Class2.test1(x);
...generates a NullReferenceException.

However, passing an integer to another function works fine.

Has someone done this and how did you solve this?



thx

Michael
 
Back
Top