Click here to Skip to main content
15,899,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUDP.. Pin
Smith#9-May-06 4:43
Smith#9-May-06 4:43 
Question_unlink() doent work on default address style Pin
AbhishekBK9-May-06 4:27
AbhishekBK9-May-06 4:27 
AnswerRe: _unlink() doent work on default address style Pin
Cedric Moonen9-May-06 4:29
Cedric Moonen9-May-06 4:29 
QuestionWindow Destruction Monitor Pin
SmokingRope229-May-06 4:25
SmokingRope229-May-06 4:25 
Questionhow to get username of a system Pin
usman_0709-May-06 4:20
usman_0709-May-06 4:20 
AnswerRe: how to get username of a system Pin
SmokingRope229-May-06 4:35
SmokingRope229-May-06 4:35 
QuestionPointer address Pin
Frigyes Nagy9-May-06 4:00
Frigyes Nagy9-May-06 4:00 
AnswerRe: Pointer address Pin
Magnus Westin9-May-06 4:23
Magnus Westin9-May-06 4:23 
Hi
Theoretically there is no smallest address a pointer can point to. In windows and c++ there is. But there is no need to know that value since you should never test against it. If you get a pointer like "LPSTR pStr" you should only check that its "!= NULL". Any thing else and you should assume that it’s a valid pointer. Its to job of the person giving you the pointer to be sure he gives you a valid one.

Also since this is c++ you really shouldnt use char arrays. Either use STL std::string or MFC CString when you need strings.

If you really want to know about how windows handles the memory and how pointers in it work. I can recomend the following book "Programming Applications for Microsoft Windows" by Jeffrey Richter[^]

Magnus
GeneralRe: Pointer address Pin
Frigyes Nagy9-May-06 5:50
Frigyes Nagy9-May-06 5:50 
GeneralRe: Pointer address Pin
Maximilien9-May-06 6:49
Maximilien9-May-06 6:49 
GeneralRe: Pointer address Pin
Frigyes Nagy9-May-06 7:24
Frigyes Nagy9-May-06 7:24 
AnswerRe: Pointer address Pin
Maxwell Chen9-May-06 7:30
Maxwell Chen9-May-06 7:30 
AnswerRe: Pointer address Pin
Maxwell Chen9-May-06 7:48
Maxwell Chen9-May-06 7:48 
GeneralRe: Pointer address Pin
Frigyes Nagy9-May-06 8:43
Frigyes Nagy9-May-06 8:43 
AnswerRe: Pointer address Pin
Maxwell Chen9-May-06 7:40
Maxwell Chen9-May-06 7:40 
GeneralRe: Pointer address Pin
Frigyes Nagy9-May-06 8:33
Frigyes Nagy9-May-06 8:33 
GeneralRe: Pointer address Pin
Maxwell Chen9-May-06 8:51
Maxwell Chen9-May-06 8:51 
Questionmax number of threads/Win32 process Pin
Shiva Prasad9-May-06 3:43
Shiva Prasad9-May-06 3:43 
AnswerRe: max number of threads/Win32 process Pin
Magnus Westin9-May-06 3:50
Magnus Westin9-May-06 3:50 
AnswerRe: max number of threads/Win32 process Pin
Cedric Moonen9-May-06 3:52
Cedric Moonen9-May-06 3:52 
QuestionHow to delete a row in listctrl using Keyboard delete Pin
Raja Bose C Leo9-May-06 2:47
Raja Bose C Leo9-May-06 2:47 
AnswerRe: How to delete a row in listctrl using Keyboard delete Pin
RChin9-May-06 3:00
RChin9-May-06 3:00 
Questionmicrosoft Pin
Krishnatv9-May-06 2:46
Krishnatv9-May-06 2:46 
AnswerRe: microsoft Pin
toxcct9-May-06 2:52
toxcct9-May-06 2:52 
GeneralRe: microsoft Pin
Krishnatv9-May-06 3:01
Krishnatv9-May-06 3: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.