Mail Archives: djgpp/2008/07/14/21:49:50

X-Authentication-Warning: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma;
DomainKey-Signature: a=rsa-sha1; c=nofws;; s=gamma;
Message-ID: <>
Date: Mon, 14 Jul 2008 21:19:58 -0400
From: "Daniel Verkamp" <daniel AT drv DOT nu>
Sender: daniel DOT verkamp AT gmail DOT com
To: djgpp AT delorie DOT com
Subject: Re: Drag and Drop to Command Line
In-Reply-To: <>
MIME-Version: 1.0
References: <I6-dnUDsEJnAOebVnZ2dnUVZ_rPinZ2d AT lmi DOT net>
X-Google-Sender-Auth: 151364bc74fe82e9
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, Jul 14, 2008 at 3:09 PM, Rob Gaddi
<rgaddi AT technologyhighland DOT com> wrote:
> Hi all --
> This is probably an idiot newbie question, but if I Googled with it any
> longer I was going to have to buy it dinner, so I'm hoping someone here
> might have a suggestion/idea of what's going on.
> I've written a very short assembler in C for a proprietary microengine that
> I'm working on.  Like any sensible assembler, it wants to take in the input
> filename on the command line, and if no further command line options are
> given, make some assumptions based on the input filename as to what the
> output filename should be.  I drive it from the command prompt and all is
> well.  I pass it long filenames, it works with long filenames, and creates
> outputs with long filenames.  Fine, perfect, all well and good.
> But when I try to drag and drop from Explorer (under XP) onto the .EXE of
> the interpreter, for some reason it gets passed the short file name instead,
> and I get the appropriately mangled output file names. Ideally, this
> wouldn't happen; Windows seems happy to pass plenty of other programs long
> names from a drag and drop.  But it thinks that mine wants a short name
> instead.
> Any ideas on why this is happening and how to fix it?  Is there some arcane
> setting in the .PIF file that I'm missing?  Some pragma flag that I should
> be setting to tell Windows that I'm a sensible, modern sort of program, and
> happy to take more than 11 characters of file name?
> Thanks in advance,
> Rob

The short answer is "write a Windows program."  DJGPP produces DOS
executables.  MinGW and Cygwin are two GCC ports for Windows, and if
your code doesn't do anything unreasonably unportable, it should be
relatively painless to recompile with one of them.

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019