Click here to Skip to main content
15,844,387 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Binary Trees Pin
Zac Howland2-Jun-06 10:07
Zac Howland2-Jun-06 10:07 
AnswerRe: Binary Trees Pin
David Crow2-Jun-06 10:43
David Crow2-Jun-06 10:43 
Questionmanaged String in Visual C++ / call a function like void f(int& x, String* s) Pin
karlheinzsteinhart2-Jun-06 7:05
karlheinzsteinhart2-Jun-06 7:05 
AnswerRe: managed String in Visual C++ / call a function like void f(int& x, String* s) Pin
Chris Losinger2-Jun-06 8:05
professionalChris Losinger2-Jun-06 8:05 
Questionwcscpy_s issues [modified] Pin
big_denny_2002-Jun-06 6:13
big_denny_2002-Jun-06 6:13 
AnswerRe: wcscpy_s issues [modified] Pin
Nish Nishant2-Jun-06 6:22
sitebuilderNish Nishant2-Jun-06 6:22 
QuestionRe: wcscpy_s issues [modified] Pin
David Crow2-Jun-06 6:33
David Crow2-Jun-06 6:33 
AnswerRe: wcscpy_s issues [modified] Pin
Viorel.2-Jun-06 6:33
Viorel.2-Jun-06 6:33 
Since _tcscpy_s is expanded to wcscpy_s call in Unicode version, you must specify the size of destination buffer in 2-byte unicode characters, not in bytes. Universal solution can look like this:

_tcscpy_s(array,
          sizeof(array) / sizeof(TCHAR),
          strText);


You got halts even if the source string was short enought, because -- in Debug version -- this function fills the buffer with 0xFD value.


-- modified at 11:33 Friday 2nd June, 2006
AnswerRe: wcscpy_s issues [modified] Pin
Zac Howland2-Jun-06 6:36
Zac Howland2-Jun-06 6:36 
GeneralRe: wcscpy_s issues [modified] Pin
Viorel.2-Jun-06 6:42
Viorel.2-Jun-06 6:42 
GeneralRe: wcscpy_s issues [modified] Pin
big_denny_2002-Jun-06 7:03
big_denny_2002-Jun-06 7:03 
GeneralRe: wcscpy_s issues [modified] Pin
Zac Howland2-Jun-06 7:02
Zac Howland2-Jun-06 7:02 
GeneralRe: wcscpy_s issues [modified] Viorel Bejan Pin
big_denny_2002-Jun-06 7:07
big_denny_2002-Jun-06 7:07 
GeneralRe: wcscpy_s issues [modified] Viorel Bejan Pin
George L. Jackson2-Jun-06 9:17
George L. Jackson2-Jun-06 9:17 
GeneralRe: wcscpy_s issues [modified] Viorel Bejan Pin
big_denny_2002-Jun-06 9:25
big_denny_2002-Jun-06 9:25 
GeneralRe: wcscpy_s issues [modified] Viorel Bejan Pin
George L. Jackson2-Jun-06 12:14
George L. Jackson2-Jun-06 12:14 
GeneralRe: wcscpy_s issues [modified] Pin
Nish Nishant2-Jun-06 7:11
sitebuilderNish Nishant2-Jun-06 7:11 
AnswerRe: wcscpy_s issues [modified] Pin
Nemanja Trifunovic2-Jun-06 6:41
Nemanja Trifunovic2-Jun-06 6:41 
GeneralRe: wcscpy_s issues [modified] Pin
Nish Nishant2-Jun-06 7:10
sitebuilderNish Nishant2-Jun-06 7:10 
AnswerRe: wcscpy_s issues [modified] Pin
georgeraafat2-Jun-06 16:06
georgeraafat2-Jun-06 16:06 
QuestionWndows application with buttons and controls Pin
LCI2-Jun-06 5:47
LCI2-Jun-06 5:47 
QuestionRe: Wndows application with buttons and controls Pin
David Crow2-Jun-06 6:12
David Crow2-Jun-06 6:12 
AnswerRe: Wndows application with buttons and controls Pin
LCI2-Jun-06 6:25
LCI2-Jun-06 6:25 
GeneralRe: Wndows application with buttons and controls Pin
David Crow2-Jun-06 6:31
David Crow2-Jun-06 6:31 
QuestionDialog events not showing Pin
ldaoust2-Jun-06 4:48
ldaoust2-Jun-06 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.