[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Interprocess Communication.

Posted on 2004-04-07
6
Medium Priority
?
263 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 2000 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Independent Software Vendors: 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!

Question has a verified solution.

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

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month19 days, 16 hours left to enroll

872 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