Menu

#940 VarDecFromStr should take LPCOLESTR and not OLESTR*

v1.0 (example)
open
nobody
None
5
2022-06-20
2022-05-06
No

The mingw-w64-headers/include/oleauto.h contains

WINOLEAUTAPI VarDecFromStr(OLECHAR *strIn,LCID lcid,ULONG dwFlags,DECIMAL *pdecOut);

but the valid prototype of this function is

HRESULT VarDecFromStr(
  [in]  LPCOLESTR strIn,
  [in]  LCID      lcid,
  [in]  ULONG     dwFlags,
  [out] DECIMAL   *pdecOut
);

That is. OLECHAR *strIn should be changed to LPCOLESTR to avoid compile errors like

error: invalid conversion
  from 'LPCOLESTR' {aka 'const wchar_t*'}
  to 'OLECHAR*' {aka 'wchar_t*'} [-fpermissive]

Discussion

  • Ozkan Sezer

    Ozkan Sezer - 2022-06-17

    Please send this to the mingw-w64-public mailing list. Very unfortunately, the issue tracker doesn't get much attention.

     

Log in to post a comment.