VC++2019 rejects my statement sprintf(subjectId, "%s", imageInfo->name); by error message:
error C2664: 'int _swprintf(wchar_t *const ,const wchar_t *const ,...)': cannot convert argument 1 from 'char [50]' to 'wchar_t *const'
where the type of imageInfo->name is char *, and subjectId is char array (char subjectId[50]).
My VC++ configuration of Character Set is "Use Unicode Character Set". But I must use narrow characters because the message passed to me is in narrow character. As I know, even in case of Wide Character Set, sprintf() can still be used. Besides, I called sprintf(), why does it complain about _swprintf()?
sprintfwith_sprintf- user4581301FRV_Dll.cpon line 336. - Chuck Walbourn#undef sprintfbefore that call? - dxiv