Accessing FoxPro from C++

Im about to start a project that requires that I monitor a FoxPro application. In particular I would like to gather information on user entry, ie when someone is entering something into a text box.

Ive had a quick look at the API and perhaps could take a look at variables (Load) that the text box writes to but does anyone have any other ideas

Regards,

Mark


Answer this question

Accessing FoxPro from C++

  • Randy Kreitzman

    Hi Mark,

    You don't have to write anything VFP specific for that. Since version 7 VFP supports the IAccessible interface. If all you need is to monitor user input and the like, you can use this interface just like with any other application. Check out http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnanchor/html/accessibility.asp for more informtion on Accessibility.


  • free_loaded

    Which version of FoxPro

    If it's a 2.x one (either DOS or Windows), you may want to look at the FoxPro Library Construction Kit, which was provided for this purpose.

    If it's VFP you can have VFP publish the event as it is occuring, which might be a better idea in your case -- as you have already been told... However, the LCK certainly is still available.  See "Creating Dynamic Link Libraries" or some such topic in the VFP help file.

    >L<

  • Bernd Fredder

    Why from c++ instead of from inside VFP itself  

    Not sure what you are trying to do.

    Are you trying to monitor an App someone else has written and you do not have source code for, or is this an app you are writing.

    If it's one you are writing see the interactivechange event for the textbox.

  • Steve W.

    Check out http://www.calvinhsia.com/papers/AdvancedVFPServers.mht ,
    which has a great example of C++ calling a vfp mtdll.  I use it in ActiveVFP PostSetup...

  • Accessing FoxPro from C++