Click here to Skip to main content
15,567,448 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSometimes it can not draw out graph Pin
xieeevil18-Aug-13 18:04
xieeevil18-Aug-13 18:04 
AnswerRe: Sometimes it can not draw out graph Pin
Richard MacCutchan18-Aug-13 21:38
mveRichard MacCutchan18-Aug-13 21:38 
GeneralRe: Sometimes it can not draw out graph Pin
Rajesh R Subramanian18-Aug-13 22:57
professionalRajesh R Subramanian18-Aug-13 22:57 
GeneralRe: Sometimes it can not draw out graph Pin
Richard MacCutchan18-Aug-13 23:09
mveRichard MacCutchan18-Aug-13 23:09 
GeneralRe: Sometimes it can not draw out graph Pin
Vaclav_21-Aug-13 5:30
Vaclav_21-Aug-13 5:30 
GeneralRe: Sometimes it can not draw out graph Pin
Richard MacCutchan21-Aug-13 6:09
mveRichard MacCutchan21-Aug-13 6:09 
QuestionWaitForSingleObject Crash Pin
ForNow18-Aug-13 15:09
ForNow18-Aug-13 15:09 
AnswerRe: WaitForSingleObject Crash Pin
Stephen Hewitt18-Aug-13 20:53
Stephen Hewitt18-Aug-13 20:53 
ForNow wrote:
(LPCTSTR)"SockClientThreadFail"


ForNow wrote:
(LPCTSTR)"192.168.1.4"


This is probably not the answer you're looking for, but it's more important. What the hell are you catting to LPCTSTR for? This is at best pointless and at worst a runtime error that would be a compile time one without the cast. You can cast all you like but it will not make it walk like a duck. If your compiling for ANSI then the cast does nothing except look stupid. If your compiling for UNICODE you're effectively telling to compiler to shut up and not issue an error (and you've made one) and just pretend that the ANSI string is a UNICODE one. Best case is a garbled string, worst a buffer overrun. Use the _T macro from <tchar.h>.
 
Steve

AnswerRe: WaitForSingleObject Crash Pin
Erudite_Eric18-Aug-13 21:07
Erudite_Eric18-Aug-13 21:07 
GeneralRe: WaitForSingleObject Crash Pin
ForNow19-Aug-13 5:45
ForNow19-Aug-13 5:45 
GeneralRe: WaitForSingleObject Crash Pin
Jochen Arndt19-Aug-13 6:14
professionalJochen Arndt19-Aug-13 6:14 
GeneralRe: WaitForSingleObject Crash Pin
ForNow19-Aug-13 6:20
ForNow19-Aug-13 6:20 
GeneralRe: WaitForSingleObject Crash Pin
Stephen Hewitt19-Aug-13 21:32
Stephen Hewitt19-Aug-13 21:32 
AnswerRe: WaitForSingleObject Crash Pin
Richard MacCutchan18-Aug-13 21:35
mveRichard MacCutchan18-Aug-13 21:35 
QuestionWin32 Menu bitmaps Pin
Jonathan Davies17-Aug-13 11:43
Jonathan Davies17-Aug-13 11:43 
GeneralRe: Win32 Menu bitmaps Pin
Richard MacCutchan18-Aug-13 2:25
mveRichard MacCutchan18-Aug-13 2:25 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 6:20
Jonathan Davies18-Aug-13 6:20 
AnswerRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 5:36
pasztorpisti18-Aug-13 5:36 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 6:05
Jonathan Davies18-Aug-13 6:05 
GeneralRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 6:27
pasztorpisti18-Aug-13 6:27 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 6:40
Jonathan Davies18-Aug-13 6:40 
GeneralRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 6:43
pasztorpisti18-Aug-13 6:43 
QuestionUDP sockets - not getting FD_READ after some time of activity on a socket Pin
csrss17-Aug-13 7:28
csrss17-Aug-13 7:28 
SuggestionRe: UDP sockets - not getting FD_READ after some time of activity on a socket Pin
pasztorpisti17-Aug-13 8:01
pasztorpisti17-Aug-13 8:01 
GeneralRe: UDP sockets - not getting FD_READ after some time of activity on a socket Pin
csrss17-Aug-13 8:45
csrss17-Aug-13 8:45 

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.