Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhich one should I use? Pin
cgsp_wei16-Jun-06 21:50
cgsp_wei16-Jun-06 21:50 
AnswerRe: Which one should I use? Pin
_AnsHUMAN_ 16-Jun-06 22:15
_AnsHUMAN_ 16-Jun-06 22:15 
GeneralRe: Which one should I use? Pin
ThatsAlok16-Jun-06 22:44
ThatsAlok16-Jun-06 22:44 
AnswerRe: Which one should I use? Pin
PJ Arends16-Jun-06 22:19
professionalPJ Arends16-Jun-06 22:19 
AnswerRe: Which one should I use? Pin
ThatsAlok16-Jun-06 22:22
ThatsAlok16-Jun-06 22:22 
AnswerRe: Which one should I use? Pin
Laxman Auti16-Jun-06 22:25
Laxman Auti16-Jun-06 22:25 
GeneralRe: Which one should I use? Pin
PJ Arends16-Jun-06 22:28
professionalPJ Arends16-Jun-06 22:28 
GeneralRe: Which one should I use? Pin
Laxman Auti16-Jun-06 22:49
Laxman Auti16-Jun-06 22:49 
PJ Arends wrote:
So does _tcscpy.


No idea,not used yet.

LPTSTR lstrcpy(LPTSTR lpString1,LPTSTR lpString2);

Using lstrcpy function incorrectly can compromise the security of your application. The first argument, lpString1, must be large enough to hold lpString2 and the closing '\0', otherwise a buffer overrun may occur. Buffer overruns may lead to a denial of service attack against the application if an access violation occurs. In the worst case, a buffer overrun may allow an attacker to inject executable code into your process, especially if lpString1 is a stack-based buffer.

Mostly application getting crashed or Access violations during such behaviour's.

ref. MSDN 2003

Knock out 't' from can't,
You can if you think you can
Cool | :cool:
GeneralOT: Fix your user name Pin
PJ Arends16-Jun-06 23:06
professionalPJ Arends16-Jun-06 23:06 
GeneralRe: OT: Fix your user name Pin
Laxman Auti16-Jun-06 23:23
Laxman Auti16-Jun-06 23:23 
GeneralRe: OT: Fix your user name Pin
ThatsAlok17-Jun-06 0:07
ThatsAlok17-Jun-06 0:07 
GeneralRe: OT: Fix your user name Pin
Laxman Auti17-Jun-06 0:16
Laxman Auti17-Jun-06 0:16 
Question[Message Deleted] Pin
happy_ram16-Jun-06 21:46
happy_ram16-Jun-06 21:46 
AnswerRe: about combo box [modified] Pin
_AnsHUMAN_ 16-Jun-06 21:50
_AnsHUMAN_ 16-Jun-06 21:50 
GeneralRe: about combo box Pin
happy_ram16-Jun-06 22:17
happy_ram16-Jun-06 22:17 
GeneralRe: about combo box Pin
Laxman Auti16-Jun-06 22:27
Laxman Auti16-Jun-06 22:27 
GeneralRe: about combo box Pin
_AnsHUMAN_ 16-Jun-06 22:35
_AnsHUMAN_ 16-Jun-06 22:35 
GeneralRe: about combo box Pin
happy_ram16-Jun-06 22:45
happy_ram16-Jun-06 22:45 
GeneralRe: about combo box Pin
Hamid_RT16-Jun-06 22:53
Hamid_RT16-Jun-06 22:53 
GeneralRe: about combo box Pin
happy_ram16-Jun-06 22:57
happy_ram16-Jun-06 22:57 
GeneralRe: about combo box Pin
ThatsAlok16-Jun-06 22:59
ThatsAlok16-Jun-06 22:59 
GeneralRe: about combo box [modified] Pin
_AnsHUMAN_ 16-Jun-06 23:01
_AnsHUMAN_ 16-Jun-06 23:01 
GeneralRe: about combo box Pin
happy_ram16-Jun-06 23:27
happy_ram16-Jun-06 23:27 
GeneralRe: about combo box Pin
ThatsAlok16-Jun-06 23:19
ThatsAlok16-Jun-06 23:19 
GeneralRe: about combo box Pin
happy_ram16-Jun-06 23:25
happy_ram16-Jun-06 23:25 

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.