I am trying to SHELL a jpg file to a VB6 program.
Every thing works just fine if the path is short with no spaces.
I create a shortpath for the target jpg.

[ I still get the error even if I physically remove all the spaces from the path. ]
Every thing works just fine if the path is short with no spaces.
I create a shortpath for the target jpg.
Code:
SetShortPath SHELL "ImageFile.exe " & strFileName1, 1 SUB SetShortPath() LOCAL szShortPath AS ASCIIZ * 255 LOCAL szLongPath AS ASCIIZ * 255 szLongPath = SPACE$(255) szLongPath = strFileName1 GetShortPathName szLongPath, szShortPath, SIZEOF(szShortPath) strFileName1 = szShortPath END SUB

[ I still get the error even if I physically remove all the spaces from the path. ]

Comment