
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
10.01.2004, 12:29
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
... имеется в виду: определить физическое расположение по реестровой ссылке %programfiles% ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
10.01.2004, 12:53
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
есть такая приблуда, как Windows Shell, которую стоит иметь ввиду при программировании под виндовс... Посмотри описание функции SHGetSpecialFolderPath мне почему-то кажется, что именно это тебе и нужно... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
10.01.2004, 12:55
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
Если хочешь узнать где расположена папка , то используй функцию SHGetSpecialFolderLocation с параметром "CSIDL_PROGRAM_FILES ". ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
10.01.2004, 13:23
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
Ребята, огромное спасибо! Сейчас попробую. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
12.01.2004, 14:01
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
Что-то не найду, в каком хедере (BCPPB-5) эта функция. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
12.01.2004, 15:16
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
winapi-шная функция. в Shell32.dll HRESULT SHGetSpecialFolderLocation(HWND hwndOwner,int nFolder,LPITEMIDLIST *ppidl); nFolder = CSIDL_PROGRAM_FILES которая в SHLOBJ.H должна бы быть, вроде как... Но вот у меня её там не было... :/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
15.01.2004, 17:15
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
Спасибо, CEMb, нашел! Если хочешь (и если этой функции у тебя нет в хедере), я тебе весь заголовочный перешлю. Мыль. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
16.01.2004, 10:25
|
|||
|---|---|---|---|
как сослаться на системную папку "Program Files" |
|||
|
#18+
Спасибо, как тока появится надобность в Program_Files - сразу намылю :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
19.01.2004, 23:35
|
|||
|---|---|---|---|
|
|||
как сослаться на системную папку "Program Files" |
|||
|
#18+
Мне кажется здесь удобнее будет ExpandEnvironmentStrings (тоже WinAPI ф-я ) The ExpandEnvironmentStrings function expands environment-variable strings and replaces them with their defined values. DWORD ExpandEnvironmentStrings( LPCTSTR lpSrc, // pointer to string with environment variables LPTSTR lpDst, // pointer to string with expanded environment variables DWORD nSize // maximum characters in expanded string ); Parameters lpSrc Points to a null-terminated string that might contain references to environment-variable strings of the form: %variableName% For each such reference, the %variableName% portion is replaced with the current value of that environment variable. The replacement rules are the same as those used by the command interpreter. Case is ignored when looking up the environment-variable name. If the name is not found, the %variableName% portion is left undisturbed. lpDst Points to a buffer to receive a copy of the source buffer, after all environment-variable name substitutions have been performed. nSize Specifies the maximum number of characters that can be stored in the buffer pointed to by the lpDst parameter, including the terminating null character. Return Values If the function succeeds, the return value is the number of characters stored in the destination buffer. If the number of characters is greater than the size of the destination buffer, the return value is the size of the buffer required to hold the expanded strings. If the function fails, the return value is zero. To get extended error information, call GetLastError. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=57&mobile=1&tid=2035513]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
38ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
| others: | 214ms |
| total: | 326ms |

| 0 / 0 |
