DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005

    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.

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    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

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Yag's status report - March 28, 2002
    By Yair Alan Griver [MS] in forum vb.announcements
    Replies: 0
    Last Post: 03-28-2002, 07:28 PM
  2. YAG's public status report - March 7, 2002
    By Seth Grossman [MSFT] in forum vb.announcements
    Replies: 1
    Last Post: 03-13-2002, 07:32 PM
  3. YAG's status report - Feb 14, 2002
    By Seth Grossman [MSFT] in forum .NET
    Replies: 1
    Last Post: 02-15-2002, 12:35 AM
  4. Visual Studio.NET Resources
    By Robert Scoble in forum ASP.NET
    Replies: 0
    Last Post: 07-20-2000, 04:11 AM
  5. Visual Studio.NET Resources
    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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.