I want to call Internet Explorer from my application and have it load up with a file called Mainpage.html. The following way is the way that I DO NOT want to use:
system("C:\\PROGRA~1\\INTERN~2\\IEXPLORE.EXE C:\\VC5\\LAUNCHER\\MAINPAGE.HTML"
The problem is no way to calculate 8-character tilda equivalents of long file names. For example, \Internet Explorer\ is \INTERN~2\ on my computer, but it may very well be \INTERN~1\ on someone else's computer. The software that I am writing should be able to run on anyone's computer.
I --KNOW-- there is an easier way to invoke other programs. I see other applications do it all the time. Someone please help!
system("C:\\PROGRA~1\\INTERN~2\\IEXPLORE.EXE C:\\VC5\\LAUNCHER\\MAINPAGE.HTML"
The problem is no way to calculate 8-character tilda equivalents of long file names. For example, \Internet Explorer\ is \INTERN~2\ on my computer, but it may very well be \INTERN~1\ on someone else's computer. The software that I am writing should be able to run on anyone's computer.
I --KNOW-- there is an easier way to invoke other programs. I see other applications do it all the time. Someone please help!