|
Hi Friends
How to call one external .EXE file using MFC ?give any urls r something....
Thanks 'N' Advance
Nisha.S
|
|
|
|
|
use ShellExecute() or CreateProcess() functions.
|
|
|
|
|
You can use following functions
1. ShellExecute /ShellExecuteEx
2. CreateProcess
Regards,
Sandip.
|
|
|
|
|
use ShellExecute() method.
ShellExecute(handle, _T("open"), <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
Mukesh Kumar
Software Engineer
|
|
|
|
|
::ShellExecuteEx(LPSHELLEXECUTEINFO lpExecInfo);
may be this can help you. YOu can launch any exe file using this function and filling the structure.
|
|
|
|
|
Use ShellExecute
-@SuDhIrKuMaR@-
|
|
|
|
|
Please read the previous answers before posting. This has already been said three times before
|
|
|
|
|
Do you know toxxct?
|
|
|
|
|
Soon he will come and his wrath will be terrible
|
|
|
|
|
Cedric Moonen wrote: Soon he will come and his wrath will be terrible
Yeah Im agree with you.
|
|
|
|
|
toxxct ? who's that ?
|
|
|
|
|
Your dark side maybe ?
|
|
|
|
|
ah, it was meant darkcct ? ^^
|
|
|
|
|
|
http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx
http://www.developerfusion.co.uk/show/9/2/
http://msdn.microsoft.com/en-us/library/bb762154.aspx
Best suitable :
SHELLEXECUTEINFO info;
memset(&info, 0, sizeof(SHELLEXECUTEINFO));
info.cbSize = sizeof(SHELLEXECUTEINFO);
info.fMask = SEE_MASK_FLAG_NO_UI;
info.lpVerb = _T ("open");
info.lpFile = sLink; // File Path...
info.nShow = SW_SHOW;
return :hellExecuteEx( &info );
Welcome in Advance...
Jagdish Bhimbha
|
|
|
|
|
You might read here first.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi! I'm Rathakrishnan. I've developed an application using VC++ 2008 Express Edition. I compiles fine. When I ran this application, it showed an error, "This application has failed to start because MSVCR90D.dll not found". Similarly ,MSVCP90D.dll not found. When I search the system for this dll, I found the dll in the following paths.
(i) "C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456"
(ii)C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\Debug_NonRedist\x86\Microsoft.VC90.DebugCRT
Also I found a dll version with a nosxs_ prefix(i.e nosxs_msvcr90d.dll). Which version of the dll should I use? nosxs or ordinary? I've installed Service Pack3 for Windows. But it alos didn't work. How to resolve this problem?
|
|
|
|
|
Please ensure the above mentioned paths are mentioned in 'Path' environment variable.
akt
|
|
|
|
|
Value of PATH in the System variables is, "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem".
modified on Tuesday, June 10, 2008 12:32 AM
|
|
|
|
|
please add the above mentioned paths also.
akt
|
|
|
|
|
The MSVCP90D.dll is implemented as a side-by-side assemblies. That is the loader wll load the dll in the "C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456" folder if the manifest file of your application metions a dependecy with the above dll.
To confirm your manifest file is correct or not, got to the debug folder and in that folder you can find a file with extension ".manifest". Open it in a notepad and check the below line exists or not.
<assemblyIdentity type='win32' name='Microsoft.VC90.DebugCRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
Hope you have havent changed the project setting to prevent the automatic creation of manifest file.
|
|
|
|
|
My Project's Debug folder didn't contain a .manifest file. What to do to create this file?
|
|
|
|
|
take "project settings->Link->Manifest File" . Now in this option, specify the below items and rebuild.
GenerateManifest - Yes
Manifest File - $(IntDir)\$(TargetFileName).intermediate.manifest
Allow Isolation - Yes
|
|
|
|
|
Every thing u said was there in the Project settings. But .manifest file is not generated. Only files in the Debug folder are, "Incremental Linker File, Program Debug Database and exe". That's all. What to do?
|
|
|
|
|
There will be one more debug folder in the project folder. check that one...
|
|
|
|