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
Posted on 2001-07-07 06:47:00 by
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 }};
Posted on 2001-07-07 07:33:00 by karim
I will try that. Thanks
Posted on 2001-07-07 08:05:00 by