Solved

Interprocess Communication.

Posted on 2004-04-07
6
259 Views
Last Modified: 2013-11-20
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.


0
Comment
Question by:pcssecure
[X]
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
6 Comments
 
LVL 48

Expert Comment

by:AlexFM
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.
0
 

Author Comment

by:pcssecure
ID: 10804291
Can you provide some sample source codes?

Thanks.
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 10805520
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_using_video_capture.asp

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.
0
Technology Partners: 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

by:pcssecure
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?
0
 
LVL 48

Expert Comment

by:AlexFM
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:

http://www.codeproject.com/threads/ipc_tute.asp
0
 

Author Comment

by:pcssecure
ID: 10811613
Thanks a lot.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 116
format the code in java 6 116
mapBully challenge 6 197
Updating statistics with error notification email in SQL server 4 126
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Suggested Courses

739 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