Problem with file association
-
I've got a problem. I Want that when you press the button (see link plz) open a pdf file with the instructions of use. http://www.imagecash.net/image.php?file=265709030 I can open file use this code
ShellExecute(this->m_hWnd,"open", "C:\\motor.pdf","","",SW_SHOW );
But this program is to use for many people, and the path changes computer to computer. How can I solve this? How can I make a setup that includes MFC files with microsoft visual studio 6? thx -
I've got a problem. I Want that when you press the button (see link plz) open a pdf file with the instructions of use. http://www.imagecash.net/image.php?file=265709030 I can open file use this code
ShellExecute(this->m_hWnd,"open", "C:\\motor.pdf","","",SW_SHOW );
But this program is to use for many people, and the path changes computer to computer. How can I solve this? How can I make a setup that includes MFC files with microsoft visual studio 6? thxYou can open the file Open dialog Ask the user to select the file to open Get the path from that fileopen dialog. and then use ShellExecute with that path Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
I've got a problem. I Want that when you press the button (see link plz) open a pdf file with the instructions of use. http://www.imagecash.net/image.php?file=265709030 I can open file use this code
ShellExecute(this->m_hWnd,"open", "C:\\motor.pdf","","",SW_SHOW );
But this program is to use for many people, and the path changes computer to computer. How can I solve this? How can I make a setup that includes MFC files with microsoft visual studio 6? thxHoly cow !! When posting, inform people that your link contains not worksafe contents !
marcogja wrote:
But this program is to use for many people, and the path changes computer to computer.
That seems logical no ? It won't start a search on your computer to find the required file. Supply the file with the program and put it in a specific folder where it can be found, that's the standard solution.
marcogja wrote:
How can I make a setup that includes MFC files with microsoft visual studio 6?
Does that have something to do with your previous question :confused: ? If yes, I don't understand.
Cédric Moonen Software developer
Charting control -
I've got a problem. I Want that when you press the button (see link plz) open a pdf file with the instructions of use. http://www.imagecash.net/image.php?file=265709030 I can open file use this code
ShellExecute(this->m_hWnd,"open", "C:\\motor.pdf","","",SW_SHOW );
But this program is to use for many people, and the path changes computer to computer. How can I solve this? How can I make a setup that includes MFC files with microsoft visual studio 6? thxmarcogja wrote:
can open file use this codeShellExecute(this->m_hWnd,"open","C:\\motor.pdf","","",SW_SHOW );
either keep that path in any inifile or ask user about file path when ever you Application run!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV