Migrate from VS2015 to VS2017

  • Thread starter Thread starter yspinner
  • Start date Start date
Y

yspinner

Guest
In VS2015 I have a simple function to check if current system is MBCS and what is the Code Page.


_locale_t loc = _create_locale (LC_CTYPE, pszName);
if (loc != NULL)
{
gbl_isMBCS = loc->locinfo->mb_cur_max > 1;
gbl_dCP = loc->locinfo->lc_codepage;
_free_locale (loc);
}

This code does not compile anymore under VS2017 SDK 10.0.15063.0

I'm getting an error "pointer to incomplete class type is not allowed" (refer the "loc" variable"

Any information about how to migrate the code? I could not find any information.




Yigal Spinner

Continue reading...
 
Back
Top