Tolga Ercan
All,
I have a similar situation. In my case it is a return value from a function that I am trying to run. The returned string is supposed to be a set of null-delimited string values finally finished off with an additional null. i.e. Value1<null>Value2<null>Value3<null><null> Unfortunately, using Byte[] or char[] does not work for me.
The call is to an application API (DataStage 7.5.1a to be exact so if you know there is a .NET API wrapper for DataStage API, that would be even better :D) and the API documentation is not correct so I do not know the exact type that they used for the return value. They copied and pasted another method's structure and forgot to update it. Evil copy-paste! In another online post I found someone saying the return is a char* but I'm not 100% sure. Anyway, so I tried StringBuilder and string, both of which return only the first value. If I use Byte[] or char[], I get an exception stating: "Cannot marshal 'return value': Invalid managed/unmanaged type combination."
Any help would be greatly appreciated!
T.