I have an outdated MFC application that I support. I'm not quite sure how to determine the version of MFC, and I donβt think it will make a difference.
An application may accept some parameters on the command line; I would like to be able to set the error level when exiting the application so that the bat / cmd file checks for a failure and responds accordingly.
I do not believe that exit () will work (I have not tried it honestly yet) due to the fact that this is an MFC application. Does anyone know how to set the error level returned by the MFC application? Is it possible to use exit ()?
, , , .
CWinApp:: ExitInstance(); return myExitCode;
, .
ERRORLEVEL DOS, , , "start/wait", , .
, , , , .
CWinApp:: ExitInstance. -, quit. , AfxPostQuitMessage, . .
Source: https://habr.com/ru/post/1699219/More articles:What is the best way to store and search for object transactions? - oopHow can you emulate a mailing list in Django? - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1699216/problems-migrating-databinding-in-vbnet-from-winforms-to-aspnet-20&usg=ALkJrhgOOJ3CeMj3Ws7Wn_Zn3thBXmkq0wHow To Change Location Of .InstallState File In Visual Studio Generated By MSI - .netCan osql.exe work autonomously? - sql-serverOracle - side by side schema update technology ... are there any? - oracleUnderstanding the internal components of JDBC - javaWhen a DLL is not found during P / Invoking, how can I get a message about a specific unmanaged DLL that is missing? - pinvokeFind dll address in memory - c #What type of mime should a python string return - pythonAll Articles