mfc - cannot convert parameter 1 from 'const char [6]' to 'const wchar_t * -


i'm new mfc , don't know error.

error

error c2664: 'void atl::cstringt::format(const wchar_t *,...)' : cannot convert parameter 1 'const char [6]' 'const wchar_t *'

heres line:

m_echo1.format("%d %",state.dwmemoryload); 

by default windows app set use 16-bit characters, not 8-bit characters. change quoted string l"%d %" specify string of 16-bit characters.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -