G'Day,

I came across the followling C++ Code which uses Windoze shell extenstions
to embed a command prompt...... In attempting to convert this to Delphi I
discovered that I have no idea what the Delphi equivalent for
"ActiveXObject" is? Anybody help me out?

TIA

function DosPrompt() {
    cmdText = textbox.value;
    obj = new ActiveXObject("ShellUtils.Exec");

    // empty command means "Show DOS Prompt"
    if (cmdText == "") {
        obj.DosFromHere(curPath);
        return;
    }

    // assume any other string is an MS-DOS command
    buf = obj.ExecCommand(curPath, cmdText);
    ShowResults(buf);
}

------------------------------------------------------------------------
--Donovan [[EMAIL PROTECTED]]
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems, Delphi Developer [www.namsys.com.au]
Voice: +61 2 6285-3460 Fax: +61 2 6285-3459
TVisualBasic = Class(None);
Heard just before the 'Big Bang': "...Uh Oh...."
------------------------------------------------------------------------
GXExplorer [http://www.gxexplorer.org] Freeware Windows Explorer
replacement. Also includes freeware delphi windows explorer components.
------------------------------------------------------------------------

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to