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
GetObjectForNativeVariant throw InvalidCast ' Unable to case int to Intptr' on windows
Variant v = new Variant(); IntPtr pObj = Marshal.GetIUnknownForObject(new object()); IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v)); Marshal.GetNativeVariantForObject(pObj, pNative); IntPtr pActualObj = Marshal.GetObjectForNativeVariant(pNative);
The text was updated successfully, but these errors were encountered:
Merge pull request #4250 from yizhang82/nativevariant_fix
ff26d68
Fix GetObjectForNativeVariant test issue. It should roundtrip the actual object instead of IntPtr. Also add proper variant clean up code. Fix #4192.
No branches or pull requests
GetObjectForNativeVariant throw InvalidCast ' Unable to case int to Intptr' on windows
Variant v = new Variant();
IntPtr pObj = Marshal.GetIUnknownForObject(new object());
IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
Marshal.GetNativeVariantForObject(pObj, pNative);
IntPtr pActualObj = Marshal.GetObjectForNativeVariant(pNative);
The text was updated successfully, but these errors were encountered: