This is a migrated thread and some comments may be shown as answers.

BUG REPORT

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peperud
Top achievements
Rank 1
Peperud asked on 03 Nov 2014, 11:43 PM
Plucking out some VB6 compatibility support from Microsoft.VisualBasic.Compatibility.dll noticed a bug or two withy PInvoke declarations:

Telerik:
[DllImport("oleaut32.dll", CharSet=CharSet.Unicode, ExactSpelling=true, SetLastError=true)]
internal static extern int VarFormat(IntPtr pvariant, ref string sFmt, int dow, int woy, int dwFlags, ref string sb);

Should be:
[DllImport("oleaut32.dll", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
internal static extern int VarFormat(IntPtr pvariant, [MarshalAs(UnmanagedType.VBByRefStr)] ref string sFmt, int dow, int woy, int dwFlags, [MarshalAs(UnmanagedType.BStr)] ref string sb);


1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 04 Nov 2014, 12:24 PM
Hello,

Thanks for sharing this issue with us. We'll research it and will try to provide a solution.

Best regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Peperud
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or