IPC between VB6 and VC++6
-
I am looking for a robust way for an application written in VB6 to communicate with a VC++6 application. The information flow needs to be bi-directional. I have a rich GUI written in VB6, and an application that uses various third party libraries to do some intensive processing and written in VC++6. For the prototype, I used AppActivate to launch the VC++ app and use SendKeys to drive the VC++ program interface. When I realised I needed bi-directional communication quickly, I hacked in use of the clipboard and pass text strings in both directions. I now have some synchronisation glitches, and given that my approach precludes the user from cutting and pasting using the clipboard, I'm looking for a more robust approach. Whereas I can find many IPC mechanisms if I'm writing entirely in VC++, I can find few examples using VB, and none linking VB to VC++. Can you offer any suggestions. TIA