Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitCommEvent() and new line Pin
rp_suman17-Feb-08 15:05
rp_suman17-Feb-08 15:05 
Generalpointer_default Pin
George_George12-Feb-08 20:58
George_George12-Feb-08 20:58 
GeneralRe: pointer_default Pin
David Crow13-Feb-08 3:12
David Crow13-Feb-08 3:12 
GeneralRe: pointer_default Pin
George_George13-Feb-08 3:47
George_George13-Feb-08 3:47 
GeneralRe: pointer_default Pin
David Crow13-Feb-08 3:57
David Crow13-Feb-08 3:57 
GeneralRe: pointer_default Pin
George_George13-Feb-08 16:47
George_George13-Feb-08 16:47 
GeneralRe: pointer_default Pin
David Crow14-Feb-08 4:51
David Crow14-Feb-08 4:51 
GeneralRe: pointer_default Pin
George_George14-Feb-08 18:21
George_George14-Feb-08 18:21 
Thanks DavidCrow,


I have some further issue for unique attribute after some study for the link you recommended.

http://msdn2.microsoft.com/en-us/library/aa367294(VS.85).aspx[^]

(Especially confused about "before the call")

--------------------
Can use existing memory on the client without allocating new memory. When a unique pointer changes during a call from one non-NULL value to another, the pointer is assumed to point to a data object of the same type. Data returned from the server is written into existing storage specified by the value of the unique pointer before the call.
--------------------

I do not know why "Data returned from the server is written into existing storage specified by the value of the unique pointer before the call", especially "the value of the unique pointer before the call".

Suppose the following scenario,

1. client pass point ptr1 to server and ptr2 originally pointed to memory buffer1;
2. server change ptr1 to pointed to memory buffer2, which is different from buffer1;
3. server writes data through pointer ptr1, it should be written to buffer2.

So, it should be,

Data returned from the server is written into existing storage specified by the "lastest" value of the unique pointer, which is memory buffer 2.

Other than,

Data returned from the server is written into existing storage specified by the value of the unique pointer "before" the call, which is memory buffer 1.

Any comments?


regards,
George
Generalostrstream Pin
George_George12-Feb-08 20:38
George_George12-Feb-08 20:38 
GeneralRe: ostrstream Pin
CPallini12-Feb-08 22:08
mveCPallini12-Feb-08 22:08 
GeneralRe: ostrstream Pin
George_George12-Feb-08 22:31
George_George12-Feb-08 22:31 
GeneralRe: ostrstream Pin
CPallini12-Feb-08 22:41
mveCPallini12-Feb-08 22:41 
GeneralRe: ostrstream Pin
George_George12-Feb-08 22:48
George_George12-Feb-08 22:48 
GeneralRe: ostrstream Pin
CPallini12-Feb-08 22:56
mveCPallini12-Feb-08 22:56 
GeneralRe: ostrstream Pin
George_George12-Feb-08 23:23
George_George12-Feb-08 23:23 
GeneralRe: ostrstream Pin
jhwurmbach12-Feb-08 23:56
jhwurmbach12-Feb-08 23:56 
GeneralRe: ostrstream Pin
George_George13-Feb-08 0:02
George_George13-Feb-08 0:02 
GeneralRe: ostrstream Pin
jhwurmbach13-Feb-08 0:40
jhwurmbach13-Feb-08 0:40 
GeneralRe: ostrstream Pin
George_George13-Feb-08 0:42
George_George13-Feb-08 0:42 
QuestionHow to extract Exported functions from a DLL Pin
poda12-Feb-08 20:18
poda12-Feb-08 20:18 
AnswerRe: How to extract Exported functions from a DLL Pin
Stephen Hewitt12-Feb-08 20:34
Stephen Hewitt12-Feb-08 20:34 
GeneralRe: How to extract Exported functions from a DLL Pin
poda12-Feb-08 21:10
poda12-Feb-08 21:10 
AnswerRe: How to extract Exported functions from a DLL Pin
Nibu babu thomas12-Feb-08 20:47
Nibu babu thomas12-Feb-08 20:47 
GeneralRe: How to extract Exported functions from a DLL Pin
poda12-Feb-08 21:40
poda12-Feb-08 21:40 
GeneralRe: How to extract Exported functions from a DLL Pin
Nibu babu thomas13-Feb-08 0:15
Nibu babu thomas13-Feb-08 0:15 

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.