directx10 font help?

Started by
0 comments, last by ryan20fun 12 years, 10 months ago


fontDesc.Height = 24; fontDesc.Width = 0; fontDesc.Weight = 0; fontDesc.MipLevels = 1; fontDesc.Italic = false; fontDesc.CharSet = DEFAULT_CHARSET; fontDesc.OutputPrecision = OUT_DEFAULT_PRECIS; fontDesc.Quality = DEFAULT_QUALITY; fontDesc.PitchAndFamily = DEFAULT_PITCH | FF_DONTCARE; wcscpy(fontDesc.FaceName, L "New Roman");



this is what is normall used , but im using Multi- byte , not uni code , because of the base program i have , so i take out the L from wcscpy , but i get an error
error C2664: 'wcscpy' : cannot convert parameter 1 from 'CHAR [32]' to 'wchar_t *'
is there another way to put the information into FaceName??
Advertisement
why not use wstring.
just call the c_str function of wstring

Never say Never, Because Never comes too soon. - ryan20fun

Disclaimer: Each post of mine is intended as an attempt of helping and/or bringing some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure you I mean no harm and do not intend to insult anyone.

This topic is closed to new replies.

Advertisement