We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Int32 GetStr( out String Str); Not working, hangs or no Str change.
original: //[DllImport("x32.dll", // CallingConvention = CallingConvention.StdCall, // CharSet = CharSet.Unicode, // EntryPoint = "GetStr")] //public static extern Int32 GetStr( // [MarshalAs(UnmanagedType.BStr)] out String Str // );
The text was updated successfully, but these errors were encountered:
Can you provide your interface definition and the calling code?
Sorry, something went wrong.
[LegacyDllImport("x32.dll")] public interface IGetStr : IDisposable { [LegacyDllMethod(CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode)] Int32 GetStr( out String Str); } public static Int32 GetStr(ref String str) { return = client.GetStr(out s); } String s = "" GetStr(ref s); if ( s != "") Ok();
I am running into a very similar problem, which I logged as "How to call a ref string function?" at #18
Successfully merging a pull request may close this issue.
Int32 GetStr( out String Str);
Not working, hangs or no Str change.
original:
//[DllImport("x32.dll",
// CallingConvention = CallingConvention.StdCall,
// CharSet = CharSet.Unicode,
// EntryPoint = "GetStr")]
//public static extern Int32 GetStr(
// [MarshalAs(UnmanagedType.BStr)] out String Str
// );
The text was updated successfully, but these errors were encountered: