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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intrerupt in fdp26

Status
Not open for further replies.

DannC

Programmer
Apr 5, 2001
75
RO
Hi, my friends

Is there a specific function / method wich can send to a TRS program a task to do ? Presuming that a have a TRS wich commands a external device wich prints something how can I connect fdp26 to that TRS program and make him execute my command.

TRS program has a set of 6 functions builded in f1:write a char and so on. I need to intercept that function and call her with my params.


Thanks.
 
Hi Nefra,

You may get a better response posting this to the FoxPro 2.6 forum.

I don't believe there is any way to do this in Fox directly. Rather, you need a compiler or assembler in which you can write a function to communicate with your TSR, and then solve the problem of linking that function to Fox.

I believe there are 2 ways to do the linking to Fox:

1) Get hold of the FoxPro Library Construction Kit. This will allow you to compile to a FoxPro Library file which means the functions can be exposed directly in FoxPro.

2) A quicker and dirtier method that doesn't need you to get hold of the Library Kit would be if your TSR excepts parameters at the DOS command line. If you can do that, you can use the FoxPro run command
Code:
RUN tsr.com param1 param2 etc.
to run an .exe or a .com or a .bat program

Hope that helps a little,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top