Click here to Skip to main content
15,886,045 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCross app SendMessage Pin
ayon1116-Sep-05 19:56
ayon1116-Sep-05 19:56 
QuestionHow to make a combobox to be flat? Pin
followait6-Sep-05 19:29
followait6-Sep-05 19:29 
AnswerRe: How to make a combobox to be flat? Pin
David Crow7-Sep-05 3:31
David Crow7-Sep-05 3:31 
Generalyes Pin
followait7-Sep-05 16:06
followait7-Sep-05 16:06 
GeneralRe: yes Pin
David Crow8-Sep-05 2:33
David Crow8-Sep-05 2:33 
QuestionHow the watch the url in IE? Pin
redduke6-Sep-05 18:32
redduke6-Sep-05 18:32 
AnswerRe: How the watch the url in IE? Pin
ThatsAlok6-Sep-05 18:52
ThatsAlok6-Sep-05 18:52 
Questiondata communication between applications Pin
Nishad S6-Sep-05 18:15
Nishad S6-Sep-05 18:15 
What steps should I do to read struct data in one application from another?

I'm trying to read a data structure in one application from another. I have the window handle of the application with me. And I also know the struct.

I need to get the structure pointer through USERDATA param of the window. In the application which owns the struct data places the address of struct data member in the window's USERDATA param by using SetWindowLong(*this,GWL_USERDATA,LONG(&st)) fn.

If a simple integer value is stored as USERDATA, I can read it by GetWindowLong(*pWnd,GWL_USERDATA) fn.

But if address of the structure data member is stored in it, I cannot read it in my application.

Should I use GlobalAlloc function for this purpose?
If so what are the necessary steps that I should do?

Please guide me!


- NS -
AnswerRe: data communication between applications Pin
Christian Graus6-Sep-05 18:44
protectorChristian Graus6-Sep-05 18:44 
GeneralRe: data communication between applications Pin
Nishad S6-Sep-05 18:51
Nishad S6-Sep-05 18:51 
AnswerRe: data communication between applications Pin
ThatsAlok6-Sep-05 18:54
ThatsAlok6-Sep-05 18:54 
GeneralRe: data communication between applications Pin
Christian Graus6-Sep-05 19:04
protectorChristian Graus6-Sep-05 19:04 
AnswerRe: data communication between applications Pin
cmk7-Sep-05 2:32
cmk7-Sep-05 2:32 
GeneralRe: data communication between applications Pin
Nishad S7-Sep-05 18:06
Nishad S7-Sep-05 18:06 
GeneralRe: data communication between applications Pin
cmk8-Sep-05 4:18
cmk8-Sep-05 4:18 
QuestionSilent Crash On 2K - Debug Suggestions? Pin
Paul Belikian6-Sep-05 16:56
Paul Belikian6-Sep-05 16:56 
Answer[Msg Deleted] Pin
Christian Graus6-Sep-05 17:10
protectorChristian Graus6-Sep-05 17:10 
AnswerRe: Silent Crash On 2K - Debug Suggestions? Pin
Christian Graus6-Sep-05 17:10
protectorChristian Graus6-Sep-05 17:10 
GeneralRe: Silent Crash On 2K - Debug Suggestions? Pin
Paul Belikian6-Sep-05 18:58
Paul Belikian6-Sep-05 18:58 
GeneralRe: Silent Crash On 2K - Debug Suggestions? Pin
Christian Graus6-Sep-05 19:15
protectorChristian Graus6-Sep-05 19:15 
AnswerRe: Silent Crash On 2K - Debug Suggestions? Pin
Blake Miller7-Sep-05 9:49
Blake Miller7-Sep-05 9:49 
QuestionDisplay Unicode string in Win32 Console Pin
Le Tuan Anh6-Sep-05 16:49
Le Tuan Anh6-Sep-05 16:49 
Questionhow read another process of variable? Pin
00000000096-Sep-05 15:36
00000000096-Sep-05 15:36 
QuestionSend message Pin
Member 21610046-Sep-05 15:34
Member 21610046-Sep-05 15:34 
AnswerRe: Send message Pin
Christian Graus6-Sep-05 15:51
protectorChristian Graus6-Sep-05 15:51 

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.