Click here to Skip to main content
16,007,504 members
Home / Discussions / C#
   

C#

 
AnswerRe: xmlScormStudio Pin
Pete O'Hanlon17-Oct-07 0:34
mvePete O'Hanlon17-Oct-07 0:34 
GeneralRe: xmlScormStudio Pin
Silly Boy17-Oct-07 17:45
Silly Boy17-Oct-07 17:45 
GeneralRe: xmlScormStudio Pin
Pete O'Hanlon19-Oct-07 0:00
mvePete O'Hanlon19-Oct-07 0:00 
QuestionHow to change default application scope settings? Pin
Tobias Schoenig16-Oct-07 23:47
Tobias Schoenig16-Oct-07 23:47 
QuestionGetAmbientProperty in C# Pin
Luke_ICS16-Oct-07 23:34
Luke_ICS16-Oct-07 23:34 
AnswerRe: GetAmbientProperty in C# Pin
Luke_ICS17-Oct-07 3:42
Luke_ICS17-Oct-07 3:42 
QuestionPassing unmanaged pointer in Message.Result Pin
__DanC__16-Oct-07 23:25
__DanC__16-Oct-07 23:25 
AnswerRe: Passing unmanaged pointer in Message.Result Pin
TJoe17-Oct-07 2:23
TJoe17-Oct-07 2:23 
I'm guessing you are sending a WM_COPYDATA message (with your COPYDATASTRUCT) to the other application. In general, Windows keeps each application in it's own virtual memory space. This virtual memory space is completely independent of other applications. So if you allocate memory in application#1, then the pointer returned is only good for application#1.

If you look at the MSDN[^] documentation for WM_COPYDATA, the first line under Remarks states that "The data being passed must not contain pointers or other references to objects not accessible to the application receiving the data". Because pointers are only valid for the given application. You can pass the memory location (a.k.a. the pointer's value) to another application, but the other application cannot do anything with it.

To copy data back, you would have to send a WM_COPYDATA message back to the first application. You could also use named pipes[^], .Net remoting, or maybe this[^].

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

QuestionError Deleting File or Folder Pin
pavya_Cool16-Oct-07 22:27
pavya_Cool16-Oct-07 22:27 
AnswerRe: Error Deleting File or Folder Pin
Giorgi Dalakishvili16-Oct-07 22:32
mentorGiorgi Dalakishvili16-Oct-07 22:32 
AnswerRe: Error Deleting File or Folder Pin
Andrei Ungureanu16-Oct-07 22:38
Andrei Ungureanu16-Oct-07 22:38 
GeneralRe: Error Deleting File or Folder Pin
DavidNohejl17-Oct-07 0:50
DavidNohejl17-Oct-07 0:50 
GeneralRe: Error Deleting File or Folder Pin
Andrei Ungureanu17-Oct-07 1:04
Andrei Ungureanu17-Oct-07 1:04 
GeneralRe: Error Deleting File or Folder Pin
DavidNohejl17-Oct-07 1:26
DavidNohejl17-Oct-07 1:26 
GeneralRe: Error Deleting File or Folder Pin
Pete O'Hanlon17-Oct-07 1:28
mvePete O'Hanlon17-Oct-07 1:28 
AnswerRe: Error Deleting File or Folder Pin
Pete O'Hanlon16-Oct-07 23:34
mvePete O'Hanlon16-Oct-07 23:34 
AnswerRe: Error Deleting File or Folder Pin
DavidNohejl17-Oct-07 0:47
DavidNohejl17-Oct-07 0:47 
GeneralRe: Error Deleting File or Folder Pin
jayart17-Oct-07 1:19
jayart17-Oct-07 1:19 
GeneralRe: Error Deleting File or Folder Pin
DavidNohejl17-Oct-07 1:30
DavidNohejl17-Oct-07 1:30 
GeneralRe: Error Deleting File or Folder Pin
Pete O'Hanlon17-Oct-07 1:55
mvePete O'Hanlon17-Oct-07 1:55 
Questionhow to stop a process during running Pin
Seraph_summer16-Oct-07 22:16
Seraph_summer16-Oct-07 22:16 
AnswerRe: how to stop a process during running Pin
Martin#16-Oct-07 22:21
Martin#16-Oct-07 22:21 
GeneralRe: how to stop a process during running Pin
Seraph_summer17-Oct-07 2:30
Seraph_summer17-Oct-07 2:30 
AnswerRe: how to stop a process during running Pin
J4amieC16-Oct-07 22:26
J4amieC16-Oct-07 22:26 
Questionabut multi-Server question Pin
jason_mf16-Oct-07 22:06
jason_mf16-Oct-07 22:06 

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.