Вниз
Скачать: CL | DM;

WinExec непонятно работает   Найти похожие ветки 

 
abhtr   (2008-01-25 12:42) [0]

Работает          WinExec("uudecode.exe dekod.txt", SW_HIDE);
Не работает          WinExec("c:\BONUS\uudecode.exe c:\BONUS\dekod.txt", SW_HIDE);
Не понятно. Поясните пожалуйста.


 
Palladin ©   (2008-01-25 12:44) [1]

Return Values

If the function succeeds, the return value is greater than 31.
If the function fails, the return value is one of the following error values:

Value Meaning
0 The system is out of memory or resources.
ERROR_BAD_FORMAT The .EXE file is invalid (non-Win32 .EXE or error in .EXE image).
ERROR_FILE_NOT_FOUND The specified file was not found.
ERROR_PATH_NOT_FOUND The specified path was not found.

вот теперь сам и анализируй почему не работает


 
palva ©   (2008-01-25 13:23) [2]

Еще варианты:
1. отсутствует файл dekod.txt
2. файл, куда надо положить результат уже существует и закрыт для записи.


 
abhtr   (2008-01-25 15:05) [3]


> Palladin

Спасибо. С этим разобрался. Работает.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.016 c
2-1201435769
Alex_Storm
2008-01-27 15:09
2008.02.17
DBCombobox


15-1200305773
AntiUser
2008-01-14 13:16
2008.02.17
Oracle.


6-1178645354
flaxe
2007-05-08 21:29
2008.02.17
Съэмулировать клиент


2-1200973467
Dina
2008-01-22 06:44
2008.02.17
Массив в Delphi


6-1180530369
Чародей
2007-05-30 17:06
2008.02.17
host email




   Наверх