-
trigger a n visual c++ mfc
good day!
I'm a new member of this forum and i'm wondering if you could help me with my problem.
i currently have two programs, one in VB and another in VC++. The first one is a motion detector program that saves a picture in bitmap file whenever a camera detects movement. The other one is an mfc application that decodes a bitmap file (a 2D barcode image) and outputs the data in the file. The idea is that whenever a barcode is inserted in front of a camera, the image is saved into a file. Then the mfc should be triggered to decode that predefined file and return the value to the VB program.
Right now, I manually operate ng mfc application to decode the image file and i want to automate this. Is there a way that VB could call this mfc decoder and accept and store a bit string of data from it? I'm thinking of a boolean in the motion detector VB program. A variable will have initial value of 0. When a card (with the barcode) is inserted and movement is detected the variable is set to 1 and the VB calls the VC++ mfc to decode the image. Then the mfc should return a data which the VB program will fetch. Then after the card is withdrawn (motion detected) the variable will reset to 0.
I hope you can help me with this.
thank you very much in advance.
-
You can use the Shell statement to run the MFC app from the VB app, then use VB's file handling statements (Open, Input, etc.) to read the file produced by the MFC app. For more information on reading files in VB, you may find this page helpful: http://en.wikibooks.org/wiki/Program..._Classic/Files
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Similar Threads
-
By Yair Alan Griver [MS] in forum vb.announcements
Replies: 0
Last Post: 03-28-2002, 07:28 PM
-
By Seth Grossman [MSFT] in forum vb.announcements
Replies: 1
Last Post: 03-13-2002, 07:32 PM
-
By Seth Grossman [MSFT] in forum .NET
Replies: 1
Last Post: 02-15-2002, 12:35 AM
-
By Robert Scoble in forum ASP.NET
Replies: 0
Last Post: 07-20-2000, 04:11 AM
-
By Robert Scoble in forum .NET
Replies: 0
Last Post: 07-20-2000, 04:11 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks