command line / windows
BlitzPlus Forums/BlitzPlus Programming/command line / windows
| ||
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.jpgthe 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? |
| ||
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. |
| ||
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! |
| ||
cheers.. I'll check that not at home at the mo |