Correction:
I meant to translate from asm to C++(Borland C++ ver. 3.1)
the following:
-------------------------------
PathName byte ‘c:\command.com’,0
ParmBlock word 0 ;Default environment
dword CmdLine ;Command line string
dword Dummy,Dummy ;Dummy FCBs
CmdLine byte 3,’ d:\’,0dh
Dummy byte 20 dup (?)
-------------------------------
thanks
You could use :
char PathName[] = "c:\\command.com";
char CmdLine[] = {3, ''d'', '':'', ''\\'', 0xD};
char Dummy[20];
typedef struct
{
short env;
char* cmdLine;
char* fcbs[2];
} ParmBlock;
To use a ParmBlock, you could do :
ParmBlock pblock = {0, CmdLine, { Dummy, Dummy }};
I will try that.
Thanks