Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Вопрос по ShellExecute / 3 сообщений из 3, страница 1 из 1
20.01.2004, 10:15
    #32381248
AlexKab
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Вопрос по ShellExecute
В программе ставлю код:

Declare Long ShellExecute in Shell32 ;
Long hWnd, String lpOperation, String lpFile, String lpParameters, String lpDirectory, ;
Integer ShowCmd
mKod=ShellExecute(0, "open", "fSelect.rar", NULL, "C:\", 1)

Какое значение будет у переменной "mKod" если в системе RAR или
любая другая нужная система (WORD,EXCEL и т.д.) отсуствует?
...
Рейтинг: 0 / 0
20.01.2004, 10:36
    #32381281
MSDN
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Вопрос по ShellExecute
0 The operating system is out of memory or resources.
ERROR_FILE_NOT_FOUND The specified file was not found.
ERROR_PATH_NOT_FOUND The specified path was not found.
ERROR_BAD_FORMAT The .EXE file is invalid (non-Win32 .EXE or error in .EXE image).
SE_ERR_ACCESSDENIED The operating system denied access to the specified file.
SE_ERR_ASSOCINCOMPLETE The filename association is incomplete or invalid.
SE_ERR_DDEBUSY The DDE transaction could not be completed because other DDE transactions were being processed.
SE_ERR_DDEFAIL The DDE transaction failed.
SE_ERR_DDETIMEOUT The DDE transaction could not be completed because the request timed out.
SE_ERR_DLLNOTFOUND The specified dynamic-link library was not found.
SE_ERR_FNF The specified file was not found.
SE_ERR_NOASSOC There is no application associated with the given filename extension.
SE_ERR_OOM There was not enough memory to complete the operation.
SE_ERR_PNF The specified path was not found.
SE_ERR_SHARE A sharing violation occurred.

Что-то из этого, скорее ERROR_FILE_NOT_FOUND, а конкретное значение получить можно в заголовочном файле VC++ или BCB SHELLAPI.H
...
Рейтинг: 0 / 0
20.01.2004, 10:47
    #32381311
.
.
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Вопрос по ShellExecute
SE_ERR_NOASSOC There is no application associated with the given filename extension.

Код: plaintext
#define SE_ERR_NOASSOC                   31 
...
Рейтинг: 0 / 0
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Вопрос по ShellExecute / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]