Article View: comp.os.ms-windows.programmer.win32
Article #2203Re: Windows NT and EMS for DOS programs
From: Anders Borum
Date: Wed, 19 May 1999 00:00
Date: Wed, 19 May 1999 00:00
25 lines
2245 bytes
2245 bytes
Daniel W. Mathiasen <mathiasen.news@nospam.iname.com> wrote in message news:MPG.11ac9f30dc5ce5f5989691@news.tele.dk... > In article <SPP%2.47$ZM4.153@news.get2net.dk>, abor@pixeleers.dk.spam.no state.. > > > > Try using CreateProcess to call the shortcut (with correct memory = > > settings) directly? > > > It will work, but I have no way of creating the short-cut on the customer > machines. So it isn't a feasible solution. :-( I assume that the reason you cannot create the shortcut on the customer machines is because shortcuts to dos-programs are not true Shell-links but instead pif files. And the reason you cannot just supply a Program Information File along with the executable, is because the directory would be incorrect. If you created the pif-file manually and then used the Shell-API til change the program path. IShellLink->SetPath() might be used for this purpose. I'm not sure it will work, since pif-files are only links from a certain perspective.
Technical Details
Message-ID:
<cQz03.237$L55.242@news.get2net.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<MPG.11a79d6af2794d3e98968f@news.tele.dk> <SPP%2.47$ZM4.153@news.get2net.dk> <MPG.11ac9f30dc5ce5f5989691@news.tele.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d22,65dcd678c89af27d X-Google-Attributes: gid109d22,public X-Google-Thread: f7a51,65dcd678c89af27d X-Google-Attributes: gidf7a51,public X-Google-Thread: 113dfb,65dcd678c89af27d X-Google-Attributes: gid113dfb,public X-Google-Thread: fa6f6,65dcd678c89af27d X-Google-Attributes: gidfa6f6,public From: "Anders Borum" <aborum@hotmail.com> Subject: Re: Windows NT and EMS for DOS programs Date: 1999/05/19 Message-ID: <cQz03.237$L55.242@news.get2net.dk> X-Deja-AN: 479635770 Content-Transfer-Encoding: quoted-printable References: <MPG.11a79d6af2794d3e98968f@news.tele.dk> <SPP%2.47$ZM4.153@news.get2net.dk> <MPG.11ac9f30dc5ce5f5989691@news.tele.dk> X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@uni2.dk X-Trace: news.get2net.dk 927123848 130.227.158.220 (Wed, 19 May 1999 16:24:08 MET DST) Organization: UNI2 Internet Kunde X-MSMail-Priority: Normal MIME-Version: 1.0 NNTP-Posting-Date: Wed, 19 May 1999 16:24:08 MET DST Newsgroups: comp.os.ms-windows.programmer.win32,dk.edb.programmering,dk.edb.programmering.c,microsoft.public.vc.language