I have an MDI text editor that I'm porting from Delphi 1 to Delphi 3. The
16-bit version could handle loading an associated *.txt file when that file
was double clicked in File Manager or Explorer. For 16-bit applications, file
and directory names never have embedded spaces.
However, since the ported version is recognized as a 32-bit app, Win95 is
sending it the unadulterated long file names when a file is double clicked in
Explorer. My program parses in file name from the command line, and when it
hits a space character it assumes that's the complete file name and gives me
a 'file not found' error.
Anyone know how to handle accepting long file names on the command line? Is
Win95 feeding the file names with some kind of delimiter?
Thanks in advance.
EEAS
eric@kobayashi.com http://www.kobayashi.com/maru/
--- Blue Wave/DOS v2.21
---------------
* Origin: The Aircrash Bureau Chicago 773-278-1195 33.6 (1:115/327)
|