Interprocess Communication.

Posted on 2004-04-07
Medium Priority
Last Modified: 2013-11-20
   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?


Question by:pcssecure
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 48

Expert Comment

ID: 10780803
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.

Author Comment

ID: 10804291
Can you provide some sample source codes?

LVL 48

Accepted Solution

AlexFM earned 2000 total points
ID: 10805520

Just read this step-by-step.

I have sample video capture MFC application which has the following features:
1) Initializes video capture, shows preview window.
2) Shows standard Video Capture dialogs.
3) Draws graphics overlay in each captured frame.

I did this application some time ago learning video capture SDK. If you want to use it, I can paste all code from this application to this thread.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 10811510
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?
LVL 48

Expert Comment

ID: 10811602
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:


Author Comment

ID: 10811613
Thanks a lot.

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question