Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Did anybody ever use MSFlexGrid control in VC++ before? Pin
Aaron K.B. Huang20-Jan-02 22:44
Aaron K.B. Huang20-Jan-02 22:44 
GeneralRe: Did anybody ever use MSFlexGrid control in VC++ before? Pin
Aaron K.B. Huang21-Jan-02 20:54
Aaron K.B. Huang21-Jan-02 20:54 
GeneralSerial Communication Pin
et20-Jan-02 21:28
et20-Jan-02 21:28 
GeneralRe: Serial Communication Pin
Jon Hulatt20-Jan-02 21:47
Jon Hulatt20-Jan-02 21:47 
GeneralRe: Serial Communication Pin
et21-Jan-02 2:59
et21-Jan-02 2:59 
GeneralRe: Serial Communication Pin
NormDroid21-Jan-02 3:41
professionalNormDroid21-Jan-02 3:41 
GeneralTwo aplications communicate through a dll... Pin
Mr.Freeze20-Jan-02 20:29
Mr.Freeze20-Jan-02 20:29 
GeneralRe: Two aplications communicate through a dll... Pin
Christopher Lord20-Jan-02 21:55
Christopher Lord20-Jan-02 21:55 
Hmm, there are a couple things that i can think of anyways.

If you have the DLL working in both projects already with shared memory, you can either poll a variable in your c++ code (a byte set to 0 for no-change or haschange). You can do this as little as once a second or in a tight loop depending on your needs. Not generally a good idea though, so i recommend:


Sending a windows message with PostMessage/SendMessage.
PostMessage is will return as soon as the message is dispatched, sendmessage waits for recipt confermation. Only use sendmessage for intra-process for deadlock reasons. So your left with PostMessage.

you can PostMessage an address in the DLL, or simply use the fact that the message has been sent to check pre-defined areas in the DLL. Either way is a good way of going.

Post/sendMessage can only send two 32-bit numbers, so you cant send a string. You could try packeting through the message pump, but thats just plain silly.



// Rock
GeneralRe: Two aplications communicate through a dll... Pin
Andreas Saurwein20-Jan-02 23:07
Andreas Saurwein20-Jan-02 23:07 
GeneralRe: Two aplications communicate through a dll... Pin
Mr.Freeze22-Jan-02 23:17
Mr.Freeze22-Jan-02 23:17 
GeneralCHtmlView and cookies Pin
StuartHall20-Jan-02 19:34
StuartHall20-Jan-02 19:34 
GeneralRe: CHtmlView and cookies Pin
StuartHall21-Jan-02 13:19
StuartHall21-Jan-02 13:19 
GeneralGlobalReAlloc Pin
alex.barylski20-Jan-02 19:31
alex.barylski20-Jan-02 19:31 
GeneralRe: GlobalReAlloc Pin
Christian Graus20-Jan-02 20:30
protectorChristian Graus20-Jan-02 20:30 
GeneralHide Dialog Pin
Mazdak20-Jan-02 19:01
Mazdak20-Jan-02 19:01 
GeneralRe: Hide Dialog Pin
Christian Graus20-Jan-02 19:20
protectorChristian Graus20-Jan-02 19:20 
GeneralRe: Hide Dialog Pin
Jon Hulatt20-Jan-02 21:51
Jon Hulatt20-Jan-02 21:51 
GeneralRe: Hide Dialog Pin
Anna-Jayne Metcalfe20-Jan-02 22:01
Anna-Jayne Metcalfe20-Jan-02 22:01 
GeneralRe: Hide Dialog Pin
Mazdak20-Jan-02 22:23
Mazdak20-Jan-02 22:23 
GeneralRe: Hide Dialog Pin
Joaquín M López Muñoz20-Jan-02 23:55
Joaquín M López Muñoz20-Jan-02 23:55 
General[Message Deleted] Pin
VladTheImpaler20-Jan-02 18:18
VladTheImpaler20-Jan-02 18:18 
GeneralRe: File Compiling Order in VC++ Pin
Jon Hulatt20-Jan-02 21:52
Jon Hulatt20-Jan-02 21:52 
GeneralRe: File Compiling Order in VC++ Pin
Aaron K.B. Huang20-Jan-02 21:58
Aaron K.B. Huang20-Jan-02 21:58 
GeneralCProgressCtrl Pin
RobJones20-Jan-02 18:13
RobJones20-Jan-02 18:13 
GeneralRe: CProgressCtrl Pin
Michael Dunn20-Jan-02 19:00
sitebuilderMichael Dunn20-Jan-02 19:00 

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.