This is how its supposed to work: The user double clicks a file in explorer and my application loads and opens the file. The only problem is that when i try to read the file form the ParamStr. i get only part of the path, say the file is in
C:\Documents and Settings\User\Desktop\FileToOpen.rpt
when i read the ParamStr(1) i only get C:\Documents.
i could use ParamCount and concatenate all the parameters in ParamStr but the problem arises when besides the file parameter i get an action parameter that specifies what to do with the file. for example i get
C:\Documents and Settings\User\Desktop\FileToOpen.rpt -p
if i get that i parse the file, but if i concantenate all the paramstr i would get a file that looks like
C:\Documents and Settings\User\Desktop\FileToOpen.rpt-p and that would be an invalid file to parse or do whatever
If anyone knows a way to get around this problem i'd appreciate it.
thanx
C:\Documents and Settings\User\Desktop\FileToOpen.rpt
when i read the ParamStr(1) i only get C:\Documents.
i could use ParamCount and concatenate all the parameters in ParamStr but the problem arises when besides the file parameter i get an action parameter that specifies what to do with the file. for example i get
C:\Documents and Settings\User\Desktop\FileToOpen.rpt -p
if i get that i parse the file, but if i concantenate all the paramstr i would get a file that looks like
C:\Documents and Settings\User\Desktop\FileToOpen.rpt-p and that would be an invalid file to parse or do whatever
If anyone knows a way to get around this problem i'd appreciate it.
thanx