From: Pete Nelson Newsgroups: comp.os.msdos.djgpp Subject: Long filenames - where are they stored? Date: Tue, 24 Feb 1998 22:51:27 -0600 Organization: MinnNet Communications, Inc. Lines: 38 Message-ID: <34F3A34F.59C9F116@minn.net> NNTP-Posting-Host: dialup-tc2-6.minn.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm having a world of trouble. Basically, I'm trying to build a program that takes a DOS filename, and spits out a URL. The trouble is that I want this to be able to support 'drag-n-drop'. Unfortunatly, Windows hands the ol' 8.3 DOS filename to the program - and that's not what I want. Here's what I have now: // to_url.cpp #include #include #include #include int main(int argc, char *argv[]) { char String[512]; char *cptr; if(argc>0) { strcpy(String, argv[1]); cptr=String; while(*cptr!='\0') { if(*cptr==':') *cptr='|'; if(*cptr=='\\') *cptr='/'; *cptr++; } *cptr='\0'; cout << "file:///" << String; } return(0); } Works well from the command line. Now how do I redirect it to grab the 32bit filename on a 'drag-n-drop'?