Click here to Skip to main content
12,699,898 members (35,793 online)

ATL / WTL / STL

 
Answerunexpected behavior Pin
bkelly1316-Sep-12 11:07
memberbkelly1316-Sep-12 11:07 
AnswerRe: CAsyncSocket Connect says in use Pin
Richard Andrew x6416-Sep-12 12:53
memberRichard Andrew x6416-Sep-12 12:53 
AnswerRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 13:05
memberpasztorpisti16-Sep-12 13:05 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 13:55
memberbkelly1316-Sep-12 13:55 
GeneralRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 14:09
memberpasztorpisti16-Sep-12 14:09 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 14:17
memberbkelly1316-Sep-12 14:17 
GeneralRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 14:34
memberpasztorpisti16-Sep-12 14:34 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 15:07
memberbkelly1316-Sep-12 15:07 
Questionbetter version of strcpy() and printf() Pin
bkelly1315-Sep-12 11:02
memberbkelly1315-Sep-12 11:02 
AnswerRe: better version of strcpy() and printf() Pin
Paul Watt15-Sep-12 13:33
mentorPaul Watt15-Sep-12 13:33 
GeneralRe: better version of strcpy() and printf() Pin
bkelly1315-Sep-12 16:34
memberbkelly1315-Sep-12 16:34 
GeneralRe: better version of strcpy() and printf() Pin
Paul Watt15-Sep-12 16:45
mentorPaul Watt15-Sep-12 16:45 
GeneralRe: better version of strcpy() and printf() Pin
bkelly1315-Sep-12 17:23
memberbkelly1315-Sep-12 17:23 
GeneralRe: better version of strcpy() and printf() Pin
pasztorpisti16-Sep-12 7:54
memberpasztorpisti16-Sep-12 7:54 
I think both strncpy() and snprintf() sucks. Once I searched for hours for a bug that was caused by strncpy(). Here is the problem: strncpy() is suboptimal because even if you copy a 1 byte string, it fills the whole remaining part of the destination buffer with zeros unnecessarily, and on the other hand it doesn't zero terminate the string if its length equals to or bigger than the size of the dest buffer. The missing zero terminator character in similar cases is true for snprintf() too. I highly discourage everyone from using these functions.
GeneralRe: better version of strcpy() and printf() Pin
Richard MacCutchan16-Sep-12 1:10
mvpRichard MacCutchan16-Sep-12 1:10 
AnswerRe: better version of strcpy() and printf() Pin
Richard Andrew x6415-Sep-12 18:01
memberRichard Andrew x6415-Sep-12 18:01 
AnswerRe: better version of strcpy() and printf() Pin
Richard MacCutchan16-Sep-12 1:09
mvpRichard MacCutchan16-Sep-12 1:09 
AnswerRe: better version of strcpy() and printf() Pin
pasztorpisti16-Sep-12 2:37
memberpasztorpisti16-Sep-12 2:37 
AnswerRe: better version of strcpy() and printf() Pin
Stephen Hewitt18-Sep-12 1:29
memberStephen Hewitt18-Sep-12 1:29 
Questionget a number into static text control Pin
bkelly1313-Sep-12 18:05
memberbkelly1313-Sep-12 18:05 
AnswerRe: get a number into static text control Pin
Richard MacCutchan13-Sep-12 22:52
mvpRichard MacCutchan13-Sep-12 22:52 
GeneralRe: get a number into static text control Pin
bkelly1314-Sep-12 16:00
memberbkelly1314-Sep-12 16:00 
GeneralRe: get a number into static text control Pin
Paul Watt14-Sep-12 16:36
mentorPaul Watt14-Sep-12 16:36 
GeneralRe: get a number into static text control Pin
Richard MacCutchan15-Sep-12 0:02
mvpRichard MacCutchan15-Sep-12 0:02 
GeneralRe: get a number into static text control Pin
bkelly1315-Sep-12 6:14
memberbkelly1315-Sep-12 6:14 
GeneralRe: get a number into static text control Pin
Richard MacCutchan15-Sep-12 6:42
mvpRichard MacCutchan15-Sep-12 6:42 
QuestionMirroring system imagelist Pin
huzifa3011-Sep-12 16:27
memberhuzifa3011-Sep-12 16:27 
QuestionCAsyncSocket, first application Pin
bkelly139-Sep-12 6:26
memberbkelly139-Sep-12 6:26 
AnswerRe: CAsyncSocket, first application Pin
Paul Watt14-Sep-12 16:47
mentorPaul Watt14-Sep-12 16:47 
QuestionAfxGetThread vs GetCurrentThreadID Pin
kishorekumarnaik6-Sep-12 7:52
memberkishorekumarnaik6-Sep-12 7:52 
AnswerRe: AfxGetThread vs GetCurrentThreadID Pin
Jiří Miklík7-Sep-12 1:24
memberJiří Miklík7-Sep-12 1:24 
Questionerror C2039: 'abort' : is not a member of 'std' Pin
KASR13-Sep-12 0:35
memberKASR13-Sep-12 0:35 
AnswerRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan3-Sep-12 1:50
mvpRichard MacCutchan3-Sep-12 1:50 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR13-Sep-12 2:44
memberKASR13-Sep-12 2:44 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan3-Sep-12 3:21
mvpRichard MacCutchan3-Sep-12 3:21 
AnswerRe: error C2039: 'abort' : is not a member of 'std' Pin
Stephen Hewitt3-Sep-12 17:54
memberStephen Hewitt3-Sep-12 17:54 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR13-Sep-12 20:46
memberKASR13-Sep-12 20:46 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan3-Sep-12 23:18
mvpRichard MacCutchan3-Sep-12 23:18 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR13-Sep-12 23:29
memberKASR13-Sep-12 23:29 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan4-Sep-12 0:23
mvpRichard MacCutchan4-Sep-12 0:23 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR14-Sep-12 3:36
memberKASR14-Sep-12 3:36 
GeneralHow to print file inclusion stack in VC6 Pin
KASR17-Aug-12 0:43
memberKASR17-Aug-12 0:43 
Questionc++ and directshow Pin
mexmerou4-Aug-12 1:04
membermexmerou4-Aug-12 1:04 
AnswerRe: c++ and directshow Pin
Richard MacCutchan4-Aug-12 2:29
mvpRichard MacCutchan4-Aug-12 2:29 
AnswerRe: c++ and directshow Pin
barneyman7-Aug-12 20:52
memberbarneyman7-Aug-12 20:52 
AnswerRe: c++ and directshow Pin
jk chan15-Aug-12 21:33
memberjk chan15-Aug-12 21:33 
GeneralNeed C++ developers for MapWindow Summer of Code 2012 Pin
Paul Meems25-Jul-12 4:38
memberPaul Meems25-Jul-12 4:38 
AnswerRe: Need C++ developers for MapWindow Summer of Code 2012 Pin
Richard MacCutchan25-Jul-12 5:35
mvpRichard MacCutchan25-Jul-12 5:35 
GeneralRe: Need C++ developers for MapWindow Summer of Code 2012 Pin
Paul Meems25-Jul-12 5:43
memberPaul Meems25-Jul-12 5:43 
GeneralRe: Need C++ developers for MapWindow Summer of Code 2012 Pin
Richard MacCutchan25-Jul-12 6:13
mvpRichard MacCutchan25-Jul-12 6:13 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 29 Dec 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid