Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add a file

Status
Not open for further replies.

mimosa

IS-IT--Management
Apr 4, 2002
25
US
Hi,
Thanks for any help.
I have an application which is developped in Visual Fox Pro 6.0.
How to add a file CLIPPER (.prg)?This file contains a screen of seized which uses TBROWSE which is a library of CLIPPER (.ch).
In which evenement or programm can I add this?
 
Hi,
Please any one has an idea or any suggestion?
Help me please.
 
Is the prg your adding compiled to EXE or DLL?

Is the prg written in VFP or Clipper?

-Pete
 
Hi,
Please any one has an idea about adding a file or any suggestion?
Help me please.
 
Hi BlindPete,
Thanks for your reply,
So :the prg my adding is compiled to EXE and the prg written is in Clipper.
Many thanks for your attention.
 
Hi BlindPete,
Thanks for your reply,
So :the prg my adding is compiled to EXE and the prg written is in Clipper.
Many thanks for your attention.
 
Is compiled EXE clipper program, a class library? OLE?

How do you want to use it in FoxPro?
-Pete
 
If I understand correctly what you are trying to do, you cannot simply add your Clipper EXE (or any EXE) to the VFP project and have it executed as a VFP program. You could shell to it via the RUN command, or if it is a COM object (Pete's question) you could instantiate it and control it from within VFP. I'd be surprised, though, that Clipper supported creation of COM servers.
Robert Bradley
 
Having been a past Clipperhead, and now battling with VFP6, I can sympathize with your problem. But...
You cannot just stick clipper code (.prg's) into a VFP6 application. All clipper screen output is incompatible since it is DOS based. Some of the @say's sill work, but the windows coordinate system is not the same as Clippers. And, many clipper commands do not exist in VFP6 and will not be resolved. There is no OrdSetFocus() and all the DbStuff() is gone. So, you have to disect the code into available VFP6 comands. The good news is that you can create a program file (a .prg) and include it in the VFP6 project, and if written using the correct VFP6 code, it will run just fine. But be careful of sending output to the screen (or window as may be the case)

DaDoRonRon :cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top