Well.. I found the solution now :)

Thanks for pointing me at the ByValArray Dumitru. That turned my attention
at the UnManagedType.ByValTStr which fixed the problem :)

For anybody else wondering the solution was:

[MarshalAs(UnmanagedType.ByValTStr, SizeConst=256)]
public string wszTitle;

and now the big question.. why didn't I think of that in the first place?
;-)

Have a nice day and thanks for the help!
Andreas Häber

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to