Invalid file path error
-
I have made all the necessary registry entries to associate my app with a project file that it creates. When I double click on the file my app starts up but I get an invalid path error when opening the file. Once the application is running, however, I can open the project file without any problems. I am getting the file name from the
m_lpCmdLine
variable in myCWinApp
derived class. Does anyone have any suggestions how to resolve this problem? Thanks. -
I have made all the necessary registry entries to associate my app with a project file that it creates. When I double click on the file my app starts up but I get an invalid path error when opening the file. Once the application is running, however, I can open the project file without any problems. I am getting the file name from the
m_lpCmdLine
variable in myCWinApp
derived class. Does anyone have any suggestions how to resolve this problem? Thanks.masnu wrote:
...but I get an invalid path error when opening the file.
Does the path contain spaces?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I have made all the necessary registry entries to associate my app with a project file that it creates. When I double click on the file my app starts up but I get an invalid path error when opening the file. Once the application is running, however, I can open the project file without any problems. I am getting the file name from the
m_lpCmdLine
variable in myCWinApp
derived class. Does anyone have any suggestions how to resolve this problem? Thanks.why don't you use your debugger for this ? you could check where something is lost. what i suspect is that you have spaces in your file path, and passing it through the commandline will not work since you don't put the path within quotes (
""
).
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
I have made all the necessary registry entries to associate my app with a project file that it creates. When I double click on the file my app starts up but I get an invalid path error when opening the file. Once the application is running, however, I can open the project file without any problems. I am getting the file name from the
m_lpCmdLine
variable in myCWinApp
derived class. Does anyone have any suggestions how to resolve this problem? Thanks.masnu wrote:
Does anyone have any suggestions how to resolve this problem?
Yes, some kinda of debugging: for instance printout (maybe with a message box) command line content. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
I have made all the necessary registry entries to associate my app with a project file that it creates. When I double click on the file my app starts up but I get an invalid path error when opening the file. Once the application is running, however, I can open the project file without any problems. I am getting the file name from the
m_lpCmdLine
variable in myCWinApp
derived class. Does anyone have any suggestions how to resolve this problem? Thanks.