Показать сообщение отдельно
  #5  
Старый 21.06.2017, 13:05
Аватар для Alegun
Alegun Alegun вне форума
LMD-DML
 
Регистрация: 12.07.2009
Адрес: Богородское
Сообщения: 3,025
Версия Delphi: D7E
Репутация: 1834
По умолчанию

Цитата:
Сообщение от Daniil
Что означает < 32 then???
Цитата:
function WinExec - If the function succeeds, it returns a value greater than 32. If the function fails, it returns an error value that indicates the cause of the failure. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. It can be cast only to an int and compared to either 32 or the following error codes below.
Это устаревшая функция, вместо неё лучше вызвать ShellExecuteEx(), а ещё лучше CreateProcess()
Ответить с цитированием