Solved

Interprocess Communication.

Posted on 2004-04-07
6
255 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
  • 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now