Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi all,

I have used perl and the Test modules along with Win32::Gui and win32::guitest to automate testing of windows applications in the past. Sendkeys, windows manipulation, selection and mouse clicks, etc.

Now I would like to do the same for some foxpro applications. However, Foxpro makes extensive use of windowless controls that do not have standard windows handle attached to the widgets.

So... Anyone know how to do this? Anyone know how to use the FoxPro API? The MSDN wasn't very forthcoming with examples... it seems like this would be the solution that I need to wrap into a perl module.... but I can't seem to find any working code or configuration for vc++ .Net so I can get started.

Any pointers to relevant docs would be helpful. Any pointers to good example code would be much appreciated.

Note this is not about database operations... this is about Foxpro GUI manipulation.


Code snippet follows:

#include<stdio.h> #include"c:\program files\Microsoft Visual Foxpro 8\Samples\api\pro_ex +t.h" int main() { WHANDLE wh; TEXT * title; title = "Form1"; wh = _WFindTitle(title); printf( "Found with fox handle '%d'",(int) wh); return 0; }

When compiled this generates the following errors:

  • foxpro_auto error LNK2019: unresolved external symbol @__WFindTitle@8 referenced in function _main
  • foxpro_auto fatal error LNK1120: 1 unresolved externals

In reply to Perl as a test tool for Foxpro apps? by talwyn

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others studying the Monastery: (4)
    As of 2020-12-02 00:52 GMT
    Find Nodes?
      Voting Booth?
      How often do you use taint mode?

      Results (26 votes). Check out past polls.