Re: [Dev-C++] How do you find a file's path?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luc Saint-E. <lu...@re...> - 2003-01-21 15:01:10
|
At 15:56 21/01/2003 +0100, Philippe de Rochambeau wrote: >Hello, > >I have developed a basic application using C++-Dev that creates a process >that runs IExplorer. Unfortunately, CreateProcess will not launch >IExplorer unless I specify the latter's complete path (e.g., C:\program >files\Explorer\ieexplore.exe) as second parameter value: CreateProcess( >NULL, "C:\\Program Files\\Explorer\\Iexplore.exe", ...). I would like to >search for IExplorer on the user's PC before creating the process. What is >the easiest way to do that on Windows? > >Many thanks. > >Philippe de Rochambeau I don't have the answer but to launch an URL I use (in C++Builder but its Windows stuff so it may work in Dev-CPP) : ShellExecute(Handle, "open", MyURLToLaunch, NULL, NULL, SW_SHOWNORMAL); Luc |