Click here to Skip to main content
16,017,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Uninitialized pointer Pin
valerie9915-Aug-05 11:09
valerie9915-Aug-05 11:09 
GeneralAfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 5:56
mcgahanfl15-Aug-05 5:56 
GeneralRe: AfxIsValidString does not seem to work. Pin
David Crow15-Aug-05 6:30
David Crow15-Aug-05 6:30 
GeneralRe: AfxIsValidString does not seem to work. Pin
Rage15-Aug-05 7:12
professionalRage15-Aug-05 7:12 
GeneralRe: AfxIsValidString does not seem to work. Pin
David Crow15-Aug-05 7:32
David Crow15-Aug-05 7:32 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 7:51
mcgahanfl15-Aug-05 7:51 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 7:53
mcgahanfl15-Aug-05 7:53 
GeneralRe: AfxIsValidString does not seem to work. Pin
Blake Miller15-Aug-05 10:14
Blake Miller15-Aug-05 10:14 
Well, what is IN the szDescription, since you did not initialize it to anything?
There might be at least one NUL byte within the 400 or so off the stack, in which case the 'length' of the string was less than or equal to 400 bytes. So the test passed, this time...

I would not ever use AfxIsValidSring unless you had actually placed (or at least suspected one had been) a zero-terminated string into the variable first.

GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 10:24
mcgahanfl15-Aug-05 10:24 
GeneralRe: AfxIsValidString does not seem to work. Pin
Tim Smith15-Aug-05 13:40
Tim Smith15-Aug-05 13:40 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl16-Aug-05 3:02
mcgahanfl16-Aug-05 3:02 
GeneralMake control part of Window Pin
tommazzo15-Aug-05 5:19
tommazzo15-Aug-05 5:19 
GeneralRe: Make control part of Window Pin
Prakash Nadar15-Aug-05 6:54
Prakash Nadar15-Aug-05 6:54 
GeneralRe: Make control part of Window Pin
tommazzo15-Aug-05 7:40
tommazzo15-Aug-05 7:40 
GeneralMultithreading Pin
Ali Tavakol15-Aug-05 5:04
Ali Tavakol15-Aug-05 5:04 
GeneralRe: Multithreading Pin
Bob Stanneveld15-Aug-05 5:57
Bob Stanneveld15-Aug-05 5:57 
GeneralCSocket locks up Pin
Roger Garrett15-Aug-05 4:04
Roger Garrett15-Aug-05 4:04 
GeneralVC++ .NET code no longer works, originally compiled on VS2002 Pin
NuclearNed15-Aug-05 3:49
sussNuclearNed15-Aug-05 3:49 
GeneralGlobal objects in MFC Pin
TOlivier15-Aug-05 3:17
TOlivier15-Aug-05 3:17 
GeneralRe: Global objects in MFC Pin
M.Mehrdad.M15-Aug-05 3:46
M.Mehrdad.M15-Aug-05 3:46 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 4:15
TOlivier15-Aug-05 4:15 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 15:01
Achim Klein15-Aug-05 15:01 
GeneralRe: Global objects in MFC Pin
TOlivier16-Aug-05 4:24
TOlivier16-Aug-05 4:24 
GeneralRe: Global objects in MFC Pin
Stephan Pilz15-Aug-05 3:51
Stephan Pilz15-Aug-05 3:51 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 4:17
TOlivier15-Aug-05 4:17 

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.