command line / windows

BlitzPlus Forums/BlitzPlus Programming/command line / windows

PantsOn(Posted 2004) [#1]
Hi

Ive got an image application that when I double click on a picture, it loads the program and diaplays it.

I have a problem. When I use the command line and type
view.exe image.jpg
the program works..

When I double click the image, view.exe crashes and attempts to create a log file.

When I compile with debug on, it still crashes and makes a log file. No error is given.

I have set up the filetype, using windows with the command line of view.exe %1 and it still doesn't work.

Can anyone help here? Has it worked for anyone before?


Floyd(Posted 2004) [#2]
I'd guess it is not correctly handling file names with quotes or embedded spaces.

Have your program display the command line before trying to load the file.
Compile that and see what the file name looks like when you double click the image file.


Mr Brine(Posted 2004) [#3]
I got somat like what you wanna do working, but I had probs, but in the end it turned out to be "" around the parameter. If I was using your example then it would pass "image.jpg" not image.jpg

Mr Brine!


PantsOn(Posted 2004) [#4]
cheers.. I'll check that
not at home at the mo