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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Infinity08Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.