Click here to Skip to main content
15,909,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting Sting to Numerical Pin
CPallini4-Feb-08 0:23
mveCPallini4-Feb-08 0:23 
GeneralRe: Converting Sting to Numerical Pin
Rajkumar R4-Feb-08 0:38
Rajkumar R4-Feb-08 0:38 
QuestionRe: Converting Sting to Numerical Pin
Rajesh R Subramanian4-Feb-08 0:41
professionalRajesh R Subramanian4-Feb-08 0:41 
GeneralRe: Converting Sting to Numerical Pin
David Crow4-Feb-08 2:42
David Crow4-Feb-08 2:42 
QuestionRe: Converting Sting to Numerical Pin
CPallini4-Feb-08 2:54
mveCPallini4-Feb-08 2:54 
QuestionRe: Converting Sting to Numerical Pin
David Crow4-Feb-08 4:10
David Crow4-Feb-08 4:10 
GeneralRe: Converting Sting to Numerical Pin
CPallini4-Feb-08 4:16
mveCPallini4-Feb-08 4:16 
Generalvalidating handles and pointers Pin
Electronic753-Feb-08 23:03
Electronic753-Feb-08 23:03 
Hello board,
There is a function that checks if a pointer is in valid memory space in MFC, I have used that before but now I forgot that and MSDN help is so crap and stupid that despite that I've tried many keywords it returns completely unrelated subject. No wonder MSN never can match google.
Can anybody give me the name of that function, please to check validity of a pointer.
Also is there any function that checks validity of a handle. When I use CloseHandle, in debug mode sometimes an exception occurs that says handle value is invalid. while I usually define handle value as INVALID_HANDLE_VALUE in the beginning and my expression is
<br />
if(m_hHandle != INVALID_HANDLE_VALUE)<br />
      CloseHandle(m_hHandle);<br />

but exception occurs and the value of handle is other than
INVALID_HANDLE_VALUE

Thanks and have a nice day.
GeneralRe: validating handles and pointers Pin
Cedric Moonen3-Feb-08 23:18
Cedric Moonen3-Feb-08 23:18 
GeneralRe: validating handles and pointers Pin
Electronic753-Feb-08 23:35
Electronic753-Feb-08 23:35 
GeneralRe: validating handles and pointers Pin
Cedric Moonen3-Feb-08 23:52
Cedric Moonen3-Feb-08 23:52 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 0:00
Electronic754-Feb-08 0:00 
GeneralRe: validating handles and pointers Pin
Cedric Moonen4-Feb-08 0:04
Cedric Moonen4-Feb-08 0:04 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 0:11
Electronic754-Feb-08 0:11 
GeneralRe: validating handles and pointers Pin
Cedric Moonen4-Feb-08 0:49
Cedric Moonen4-Feb-08 0:49 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 1:35
Electronic754-Feb-08 1:35 
GeneralRe: validating handles and pointers Pin
jhwurmbach4-Feb-08 2:45
jhwurmbach4-Feb-08 2:45 
GeneralRe: validating handles and pointers Pin
Electronic754-Feb-08 3:30
Electronic754-Feb-08 3:30 
GeneralRe: validating handles and pointers Pin
jhwurmbach4-Feb-08 4:02
jhwurmbach4-Feb-08 4:02 
GeneralRe: validating handles and pointers Pin
David Crow4-Feb-08 2:54
David Crow4-Feb-08 2:54 
GeneralRe: validating handles and pointers Pin
Maxwell Chen3-Feb-08 23:27
Maxwell Chen3-Feb-08 23:27 
GeneralRe: validating handles and pointers Pin
Electronic753-Feb-08 23:38
Electronic753-Feb-08 23:38 
QuestionRe: validating handles and pointers Pin
CPallini3-Feb-08 23:42
mveCPallini3-Feb-08 23:42 
GeneralRe: validating handles and pointers Pin
Electronic753-Feb-08 23:54
Electronic753-Feb-08 23:54 
GeneralRe: validating handles and pointers Pin
Cedric Moonen3-Feb-08 23:58
Cedric Moonen3-Feb-08 23:58 

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.