Click here to Skip to main content
15,905,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs there any way to statically link with kernel32/ntdll? Pin
sunriseway5-Dec-06 10:08
sunriseway5-Dec-06 10:08 
AnswerRe: Is there any way to statically link with kernel32/ntdll? Pin
Zac Howland5-Dec-06 10:16
Zac Howland5-Dec-06 10:16 
Questionsprintf vs strcpy Pin
Blake Miller5-Dec-06 9:02
Blake Miller5-Dec-06 9:02 
AnswerRe: sprintf vs strcpy Pin
David Crow5-Dec-06 9:09
David Crow5-Dec-06 9:09 
AnswerRe: sprintf vs strcpy Pin
Zac Howland5-Dec-06 9:30
Zac Howland5-Dec-06 9:30 
AnswerRe: sprintf vs strcpy Pin
led mike5-Dec-06 9:43
led mike5-Dec-06 9:43 
GeneralRe: sprintf vs strcpy Pin
Zac Howland5-Dec-06 10:00
Zac Howland5-Dec-06 10:00 
GeneralRe: sprintf vs strcpy Pin
led mike5-Dec-06 10:31
led mike5-Dec-06 10:31 
yes they are also safe versions but are not all the same as the strsafe library routines

You should be aware that strsafe functions, such as StringCchCopy and StringCchCat behave 
differently than strncpy_s and strncat_s. If strncat_s detects an error, the function will 
set the string to NULL. However, by default, strsafe will fill the destination with as much 
data as possible, and then NULL-terminate the string. You can mimic the same behavior in 
strsafe with code like this:


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncode/html/secure03102004.asp
[^]


led mike

AnswerRe: sprintf vs strcpy Pin
Stephen Hewitt5-Dec-06 12:08
Stephen Hewitt5-Dec-06 12:08 
Questionsimple code question Pin
CaptainChainsaw5-Dec-06 6:51
CaptainChainsaw5-Dec-06 6:51 
AnswerRe: simple code question Pin
Nemanja Trifunovic5-Dec-06 6:58
Nemanja Trifunovic5-Dec-06 6:58 
AnswerRe: simple code question Pin
David Crow5-Dec-06 7:18
David Crow5-Dec-06 7:18 
AnswerRe: simple code question Pin
zoid ! 5-Dec-06 7:28
zoid ! 5-Dec-06 7:28 
AnswerRe: simple code question Pin
includeh105-Dec-06 8:06
includeh105-Dec-06 8:06 
AnswerRe: simple code question Pin
CaptainChainsaw5-Dec-06 9:16
CaptainChainsaw5-Dec-06 9:16 
AnswerRe: simple code question Pin
Zac Howland5-Dec-06 9:34
Zac Howland5-Dec-06 9:34 
QuestionCTooltipCtrl Pin
Demian Panello5-Dec-06 6:28
Demian Panello5-Dec-06 6:28 
AnswerRe: CTooltipCtrl Pin
Wes Aday5-Dec-06 10:06
professionalWes Aday5-Dec-06 10:06 
QuestionHow to use MSFLexGrid in VC 2005 Pin
masnu5-Dec-06 5:42
masnu5-Dec-06 5:42 
AnswerRe: How to use MSFLexGrid in VC 2005 Pin
prasad_som6-Dec-06 18:49
prasad_som6-Dec-06 18:49 
QuestionBorder for rounded rectangle Pin
Super Hornet5-Dec-06 5:38
Super Hornet5-Dec-06 5:38 
AnswerRe: Border for rounded rectangle Pin
Waldermort5-Dec-06 6:24
Waldermort5-Dec-06 6:24 
QuestionRe: Border for rounded rectangle [modified] Pin
Super Hornet5-Dec-06 7:04
Super Hornet5-Dec-06 7:04 
GeneralRe: Border for rounded rectangle Pin
Mark Salsbery5-Dec-06 7:35
Mark Salsbery5-Dec-06 7:35 
QuestionRe: Border for rounded rectangle Pin
Super Hornet5-Dec-06 7:55
Super Hornet5-Dec-06 7:55 

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.