BUG REPORT

2 posts, 0 answers
  1. Peperud
    Peperud avatar
    1 posts
    Member since:
    Nov 2014

    Posted 03 Nov 2014 Link to this post

    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);


  2. Vladi
    Admin
    Vladi avatar
    167 posts

    Posted 04 Nov 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top