Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78427 --- shadow/78427 2006-05-16 22:10:52.000000000 -0400 +++ shadow/78427.tmp.2935 2006-05-16 22:10:52.000000000 -0400 @@ -0,0 +1,49 @@ +Bug#: 78427 +Product: Mono: Runtime +Version: 1.0 +OS: +OS Details: XP +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: interop +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: MarshalAs(UnmanagedType.LPStruct) not working + +Please fill in this template when reporting a bug, unless you know what you +are doing. +Description of Problem: +MarshalAs(UnmanagedType.LPStruct) does not seem to be working correctly. +This would be useful for COM Interop +(http://blogs.msdn.com/adam_nathan/archive/2003/04/23/56635.aspx). + + +Steps to reproduce the problem: +1. Run attached sample on windows (tries to create IE COM Object). +2. +3. + +Actual Results: +$ mono lpstruct_test.exe +Using LPStruct hr = 2147942487 p = 0 +Using ref Guid hr = 0 p = 2437584 + +Expected Results: +$ ./lpstruct_test.exe +Using LPStruct hr = 0 p = 1658764 +Using ref Guid hr = 0 p = 1671772 + +Note, p is a pointer so values don't need to match. hr should be 0, and p +should have a non-zero value. + + +How often does this happen? +Everytime. + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
