Click here to Skip to main content
15,851,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check for empty buffer Pin
CPallini1-May-09 0:00
mveCPallini1-May-09 0:00 
GeneralRe: Check for empty buffer Pin
Rajesh R Subramanian1-May-09 0:40
professionalRajesh R Subramanian1-May-09 0:40 
GeneralRe: Check for empty buffer Pin
CPallini1-May-09 0:47
mveCPallini1-May-09 0:47 
GeneralRe: Check for empty buffer Pin
Rajesh R Subramanian1-May-09 0:57
professionalRajesh R Subramanian1-May-09 0:57 
AnswerRe: Check for empty buffer Pin
Fernando A. Gomez F.30-Apr-09 20:55
Fernando A. Gomez F.30-Apr-09 20:55 
GeneralRe: Check for empty buffer Pin
Joe Woodbury3-May-09 15:17
professionalJoe Woodbury3-May-09 15:17 
GeneralRe: Check for empty buffer Pin
Fernando A. Gomez F.3-May-09 18:47
Fernando A. Gomez F.3-May-09 18:47 
AnswerRe: Check for empty buffer Pin
Eytukan30-Apr-09 21:28
Eytukan30-Apr-09 21:28 
CodingLover wrote:
if(szMyBuffer != L"")


As Joe said, this isn't the buffer itself. You cannot check using the == operator.
If you are using std::string or CString, you could. That too I'd prefer checking their lengths. For buffers you could use CRT routines :
MSDN[^]


Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

AnswerRe: Check for empty buffer Pin
CPallini30-Apr-09 23:58
mveCPallini30-Apr-09 23:58 
QuestionConvert Ascii to hex.and hex to decimal. Pin
Le@rner30-Apr-09 19:39
Le@rner30-Apr-09 19:39 
AnswerRe: Convert Ascii to hex.and hex to decimal. Pin
Rajesh R Subramanian30-Apr-09 21:47
professionalRajesh R Subramanian30-Apr-09 21:47 
GeneralRe: Convert Ascii to hex.and hex to decimal. Pin
Le@rner30-Apr-09 21:49
Le@rner30-Apr-09 21:49 
GeneralRe: Convert Ascii to hex.and hex to decimal. Pin
Rajesh R Subramanian1-May-09 0:59
professionalRajesh R Subramanian1-May-09 0:59 
QuestionHow to put a dialog into CDockablePane? Pin
eight30-Apr-09 9:50
eight30-Apr-09 9:50 
QuestionRe: How to put a dialog into CDockablePane? Pin
David Crow30-Apr-09 9:59
David Crow30-Apr-09 9:59 
AnswerRe: How to put a dialog into CDockablePane? Pin
Maximilien30-Apr-09 10:27
Maximilien30-Apr-09 10:27 
QuestionRe: How to put a dialog into CDockablePane? Pin
eight1-May-09 6:18
eight1-May-09 6:18 
AnswerRe: How to put a dialog into CDockablePane? Pin
Maximilien1-May-09 6:47
Maximilien1-May-09 6:47 
GeneralRe: How to put a dialog into CDockablePane? Pin
eight1-May-09 9:58
eight1-May-09 9:58 
GeneralRe: How to put a dialog into CDockablePane? Pin
ima2401098-Nov-09 3:20
ima2401098-Nov-09 3:20 
GeneralRe: How to put a dialog into CDockablePane? Pin
eight9-Nov-09 19:31
eight9-Nov-09 19:31 
GeneralRe: How to put a dialog into CDockablePane? Pin
ima2401099-Nov-09 23:42
ima2401099-Nov-09 23:42 
Questionwinsock send blocks Pin
FotisSs30-Apr-09 9:16
FotisSs30-Apr-09 9:16 
QuestionI had an MDI application and want to change the background color of client area, please suggest Pin
rajeshbhushetty30-Apr-09 8:00
rajeshbhushetty30-Apr-09 8:00 
AnswerRe: I had an MDI application and want to change the background color of client area, please suggest Pin
led mike30-Apr-09 9:01
led mike30-Apr-09 9:01 

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.