+ 1

error C2665: 'strcpy_s' : none of the 2 overloads could convert all the argument types.

I am facing a problem. When I use this function ; strcpy_s(str, Data) ;while coding the huffman tree; it shows an error : error C2665: 'strcpy_s' : none of the 2 overloads could convert all the argument types. Help with how to make this run??

18th Jun 2018, 6:20 PM
Don Loic
3 Réponses
+ 1
strcpy accept 3 params: first is the output buffer (where you are coping), the second the max size of writing (usually the max size of output buffer) and third the input string (copied string)... Now, i see that you have missed a param in your posted code
18th Jun 2018, 6:33 PM
KrOW
KrOW - avatar
+ 1
Thanks!
18th Jun 2018, 7:57 PM
Don Loic
0
👍👍👍
18th Jun 2018, 8:16 PM
KrOW
KrOW - avatar