Link to home
Start Free TrialLog in
Avatar of pcssecure
pcssecureFlag for Hong Kong

asked on

Interprocess Communication.

Hi,
   I have a delphi program that grabs video frames from a web cam. It obtains a TBitMap Object 15 times a second.

I need to write another MFC program running in parallel that displays this TBitmap.

How can the MFC program get the TBitmap from the Delphi program? What is the best way to do this? Is is possible to do this without copying the TBitmap to some shared memory?

Thanks.


Avatar of AlexFM
AlexFM

I think you need to copy bitmap bits to memory mapped file.
Why do you need to work with Webcam using Delphi program? It's only few lines of code to do this in MFC. MFC doesn't have special support for this, but Video Capture functions are very high-level and easy to use.
Avatar of pcssecure

ASKER

Can you provide some sample source codes?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If it is okay with you, can you send it to audio74@yahoo.com.
Also, do you have sample source code for the memory mapped files?
Posted. Remove unnecessary features and see how it works.
To see full dialog click in the title bar icon and select "Swow/Hide controls".

Memory mapped files sample:

http://www.codeproject.com/threads/ipc_tute.asp
Thanks a lot.