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"c:\program files\Microsoft Visual Foxpro 8\Samples\api\pro_ex
TEXT * title;
title = "Form1";
wh = _WFindTitle(title);
printf( "Found with fox handle '%d'",(int) wh);
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
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- 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
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||