Click here to Skip to main content
16,005,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Delete file Pin
eraccn10-Jul-07 14:38
eraccn10-Jul-07 14:38 
QuestionWhat kind of coding mistakes cause unexpected exits? Pin
TBC_DEV10-Jul-07 9:28
TBC_DEV10-Jul-07 9:28 
AnswerRe: What kind of coding mistakes cause unexpected exits? Pin
Perspx10-Jul-07 9:36
Perspx10-Jul-07 9:36 
GeneralRe: What kind of coding mistakes cause unexpected exits? Pin
TBC_DEV10-Jul-07 9:47
TBC_DEV10-Jul-07 9:47 
GeneralRe: What kind of coding mistakes cause unexpected exits? Pin
Perspx10-Jul-07 10:11
Perspx10-Jul-07 10:11 
AnswerRe: What kind of coding mistakes cause unexpected exits? Pin
InOut.NET10-Jul-07 12:57
InOut.NET10-Jul-07 12:57 
QuestionHandles and Pointers Pin
tom groezer10-Jul-07 9:17
tom groezer10-Jul-07 9:17 
AnswerRe: Handles and Pointers Pin
Mark Salsbery10-Jul-07 9:59
Mark Salsbery10-Jul-07 9:59 
tom groezer wrote:
What is the difference between handle and pointer in terms of memory.


A handle is an "opaque" data type. You can't make any assumptions about what it is and the
implementation can be changed (in future versions) at any time. A handle could be a pointer, an
index, an atom, etc. A handle is NOT always a pointer.

tom groezer wrote:
Can my other process(non releated) see a handle/pointer. Lets say if my application has a pointer
pointing to some data at at that memory location. Will it be possible for the other application
to access that data?


Each process has its own address space. You could pass a pointer to another process but the
pointer would be useless to the other process. To share memory between processes you could use
something like GlobalAlloc, which allocates memory on the global heap.

tom groezer wrote:
The return value from WinExec, which is a stripped-down version of CreateProcess, is a handle to a
Windows NT executive object, whereas an instance handle, the value returned from LoadLibrary, is
a virtual pointer.


You seem to know alot about internal details like that Smile | :) Who cares, both functions are holdovers
from 16-bit Windows.

Mark




Mark Salsbery
Microsoft MVP - Visual C++


This episode brought to you by the letter Z

GeneralRe: Handles and Pointers Pin
tom groezer10-Jul-07 10:12
tom groezer10-Jul-07 10:12 
GeneralRe: Handles and Pointers Pin
Mark Salsbery10-Jul-07 11:38
Mark Salsbery10-Jul-07 11:38 
GeneralRe: Handles and Pointers Pin
InOut.NET10-Jul-07 13:14
InOut.NET10-Jul-07 13:14 
GeneralRe: Handles and Pointers Pin
Mark Salsbery10-Jul-07 13:39
Mark Salsbery10-Jul-07 13:39 
GeneralRe: Handles and Pointers Pin
InOut.NET10-Jul-07 13:49
InOut.NET10-Jul-07 13:49 
GeneralRe: Handles and Pointers Pin
Mark Salsbery10-Jul-07 13:52
Mark Salsbery10-Jul-07 13:52 
QuestionProblem with System Tray Icons Pin
jamestheprogrammer10-Jul-07 8:25
jamestheprogrammer10-Jul-07 8:25 
AnswerRe: Problem with System Tray Icons Pin
Hamid_RT10-Jul-07 8:55
Hamid_RT10-Jul-07 8:55 
GeneralRe: Problem with System Tray Icons Pin
jamestheprogrammer10-Jul-07 9:00
jamestheprogrammer10-Jul-07 9:00 
AnswerRe: Problem with System Tray Icons Pin
Perspx10-Jul-07 9:30
Perspx10-Jul-07 9:30 
GeneralRe: Problem with System Tray Icons Pin
jamestheprogrammer10-Jul-07 10:11
jamestheprogrammer10-Jul-07 10:11 
GeneralRe: Problem with System Tray Icons Pin
Perspx10-Jul-07 11:05
Perspx10-Jul-07 11:05 
AnswerRe: Problem with System Tray Icons Pin
Mark Salsbery10-Jul-07 10:12
Mark Salsbery10-Jul-07 10:12 
AnswerRe: Problem with System Tray Icons Pin
JudyL_MD10-Jul-07 10:26
JudyL_MD10-Jul-07 10:26 
GeneralRe: Problem with System Tray Icons Pin
jamestheprogrammer10-Jul-07 10:47
jamestheprogrammer10-Jul-07 10:47 
GeneralRe: Problem with System Tray Icons Pin
Mark Salsbery10-Jul-07 11:58
Mark Salsbery10-Jul-07 11:58 
GeneralRe: Problem with System Tray Icons Pin
Mark Salsbery10-Jul-07 12:02
Mark Salsbery10-Jul-07 12:02 

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.