Programming with JobGenPlus/ clangiage syntax need

I need the correct syntax to run a program from within another program for a handheld termimal. I have a unitech ht-630 and am using jobgen  plus ,the latest version to program.  I do not know what to fill in here to make the program run the scantix.exe program, any solutions appreciated.



here is the code it is in c language or maybe c++

what is char far *str and where do i place parameters, program name etc

void TS-Run(char far *str)
{
regs.hah=0x4b;
regs.h.al=3;
segregs.ds=FP_SEG('scantix.exe');
segregs.x.dx=FP_OFF(str);
int86x(0x21, &regs, &regs, &segregs);

}
help.txt
jtgraphicAsked:
Who is Participating?
 
Infinity08Connect With a Mentor Commented:
Make that (I didn't notice the minus sign) :
void TS_Run(char far *str)
{
    regs.hah=0x4b;
    regs.h.al=3;
    segregs.ds=FP_SEG(str);
    segregs.x.dx=FP_OFF(str);
    int86x(0x21, &regs, &regs, &segregs);
}

/* and then, when you want to run the application : */

TS_Run("scantix.exe");

Open in new window

0
 
Infinity08Commented:
It looks like the idea is to do :
void TS-Run(char far *str)
{
    regs.hah=0x4b;
    regs.h.al=3;
    segregs.ds=FP_SEG(str);
    segregs.x.dx=FP_OFF(str);
    int86x(0x21, &regs, &regs, &segregs);
}

/* and then, when you want to run the application : */

TS-Run("scantix.exe");

Open in new window

0
All Courses

From novice to tech pro — start learning today.