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

C / C++ / MFC

 
GeneralRe: How to copy from CBitmap to CBitmap Pin
ThatsAlok6-Jun-06 18:13
ThatsAlok6-Jun-06 18:13 
QuestionShared Memory Writing Pin
velayudhan_raj6-Jun-06 1:03
velayudhan_raj6-Jun-06 1:03 
AnswerRe: Shared Memory Writing Pin
Laxman Auti6-Jun-06 1:13
Laxman Auti6-Jun-06 1:13 
GeneralRe: Shared Memory Writing Pin
velayudhan_raj6-Jun-06 1:15
velayudhan_raj6-Jun-06 1:15 
GeneralRe: Shared Memory Writing Pin
ThatsAlok6-Jun-06 1:57
ThatsAlok6-Jun-06 1:57 
AnswerRe: Shared Memory Writing Pin
Viorel.6-Jun-06 1:29
Viorel.6-Jun-06 1:29 
AnswerRe: Shared Memory Writing Pin
Hamid_RT6-Jun-06 1:41
Hamid_RT6-Jun-06 1:41 
AnswerRe: Shared Memory Writing Pin
James R. Twine6-Jun-06 3:13
James R. Twine6-Jun-06 3:13 
   If the two applications are complete separate processes, you cannot just share pointers between the two of them.  If the shared memory segment is coherent between both processes, you can simply use a portion of it as a buffer for text/string data.  You can then pass offsets into the buffer to specify data locations.

   Or, you can change the structure to contain a proper array and copy the entire structure to the shared memory area:
struct sMyData
{
    double m_dValue;
    char   m_cValue;
    char   m_caValue[ 128 ];
    int    m_iValue;
};
   When moving data between processes via some kind of shared memory implementation, you should generally avoid pointers and "real" objects.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
QuestionKernal32.lib .....Error at run Pin
zahid_ash6-Jun-06 0:55
zahid_ash6-Jun-06 0:55 
AnswerRe: Kernal32.lib .....Error at run Pin
_AnsHUMAN_ 6-Jun-06 1:04
_AnsHUMAN_ 6-Jun-06 1:04 
QuestionRe: Kernal32.lib .....Error at run Pin
David Crow6-Jun-06 3:31
David Crow6-Jun-06 3:31 
Questioncompiler creation Pin
c076-Jun-06 0:46
c076-Jun-06 0:46 
AnswerRe: compiler creation Pin
Sarath C6-Jun-06 1:01
Sarath C6-Jun-06 1:01 
GeneralRe: compiler creation Pin
c076-Jun-06 4:00
c076-Jun-06 4:00 
QuestionMouse move event Pin
RajiRaghu6-Jun-06 0:43
RajiRaghu6-Jun-06 0:43 
Questionconversion to _bstr_t - newbie Pin
antonaras6-Jun-06 0:29
antonaras6-Jun-06 0:29 
AnswerRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:37
Sarath C6-Jun-06 0:37 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:58
ThatsAlok6-Jun-06 0:58 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 1:02
ThatsAlok6-Jun-06 1:02 
AnswerRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:43
ThatsAlok6-Jun-06 0:43 
GeneralRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:49
Sarath C6-Jun-06 0:49 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:57
ThatsAlok6-Jun-06 0:57 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 0:55
antonaras6-Jun-06 0:55 
GeneralRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:59
Sarath C6-Jun-06 0:59 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 1:01
ThatsAlok6-Jun-06 1: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.