Click here to Skip to main content
16,004,778 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Fund Raising Thermometer Pin
chandu00412-Oct-07 13:30
chandu00412-Oct-07 13:30 
GeneralRe: Fund Raising Thermometer [solved] Pin
Naturalwoman12-Oct-07 14:51
Naturalwoman12-Oct-07 14:51 
GeneralRe: Fund Raising Thermometer [solved] Pin
chandu00412-Oct-07 17:37
chandu00412-Oct-07 17:37 
QuestionWrite .dll to load in Win95 Pin
ryan027012-Oct-07 10:55
ryan027012-Oct-07 10:55 
AnswerRe: Write .dll to load in Win95 Pin
JudyL_MD15-Oct-07 3:00
JudyL_MD15-Oct-07 3:00 
QuestionHow can I respond to a splitter bar move? Pin
Interrobang12-Oct-07 10:12
Interrobang12-Oct-07 10:12 
AnswerRe: How can I respond to a splitter bar move? Pin
led mike12-Oct-07 10:41
led mike12-Oct-07 10:41 
QuestionWhy i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
Yanshof12-Oct-07 7:37
Yanshof12-Oct-07 7:37 
I try to use the method wcscpy_s to copy BufferSource to BufferDestinationto.
The 2 buffer type is LPTSTR.

When i define the second parameter in the function wcscpy_s in HARD CODE all work fine.

But i want to define it in runTime - i use the function _tcslen to find the number of elements i want to copy ( in this case i want to copy all strSource to strDestination ) - but i crash each time i try to make the copy.

The code:

LPTSTR BufferDestinationto[256], strSource[256];<br />
.<br />
. [ Some code that add information to BufferDestinationto ]...<br />
.<br />
<br />
wcscpy_s(BufferDestinationto, _tcslen(strSource), strSource );




MY crach is in the wcscpy_s and this happand because the _tcslen function.

Thansk form any halp.
AnswerRe: Why i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
Mark Salsbery12-Oct-07 7:51
Mark Salsbery12-Oct-07 7:51 
AnswerRe: Why i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
led mike12-Oct-07 7:51
led mike12-Oct-07 7:51 
GeneralRe: Why i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
Mark Salsbery12-Oct-07 7:55
Mark Salsbery12-Oct-07 7:55 
QuestionEnableTheming(TRUE) Pin
bob1697212-Oct-07 4:47
bob1697212-Oct-07 4:47 
QuestionVisual Styles and Toolbar Pin
bob1697212-Oct-07 3:31
bob1697212-Oct-07 3:31 
Questiona problem about stackoverflow Pin
nibabug12-Oct-07 3:29
nibabug12-Oct-07 3:29 
QuestionRe: a problem about stackoverflow Pin
David Crow12-Oct-07 3:44
David Crow12-Oct-07 3:44 
AnswerRe: a problem about stackoverflow Pin
nibabug12-Oct-07 3:51
nibabug12-Oct-07 3:51 
GeneralRe: a problem about stackoverflow Pin
David Crow12-Oct-07 3:56
David Crow12-Oct-07 3:56 
GeneralRe: a problem about stackoverflow Pin
toxcct12-Oct-07 4:36
toxcct12-Oct-07 4:36 
QuestionRe: a problem about stackoverflow Pin
David Crow12-Oct-07 4:43
David Crow12-Oct-07 4:43 
AnswerRe: a problem about stackoverflow Pin
toxcct12-Oct-07 4:47
toxcct12-Oct-07 4:47 
AnswerRe: a problem about stackoverflow Pin
nibabug12-Oct-07 4:11
nibabug12-Oct-07 4:11 
GeneralRe: a problem about stackoverflow Pin
David Crow12-Oct-07 4:32
David Crow12-Oct-07 4:32 
GeneralRe: a problem about stackoverflow Pin
Mike Dimmick12-Oct-07 6:10
Mike Dimmick12-Oct-07 6:10 
GeneralRe: a problem about stackoverflow Pin
nibabug12-Oct-07 15:24
nibabug12-Oct-07 15:24 
AnswerRe: a problem about stackoverflow Pin
Jonathan [Darka]12-Oct-07 3:44
professionalJonathan [Darka]12-Oct-07 3:44 

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.