Re[3]: Проблема с Shell_NotifyIcon
От: cod3r_200  
Дата: 25.07.06 07:50
Оценка:
Здравствуйте, Demaniac, Вы писали:

D>Конечно же пробовал... Вылетает три тележки ошибок такого типа:


D> C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ShellAPI.h(55): error C2501: 'DECLARE_HANDLE' : missing storage-class or type specifiers


D>C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ShellAPI.h(57): error C2146: syntax error : missing ';' before identifier 'DECLSPEC_IMPORT'


D>C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ShellAPI.h(58): error C2086: 'int UINT' : redefinition


С хедерами дето намутил значит .Если операция разовая, то получи динамически адрес ф-ции через GetProcAddress

пример:
typedef BOOL (*pShell_NotifyIcon)(DWORD dwMessage, PNOTIFYICONDATA lpdata);
HANDLE hShell = ::LoadLibrary(_T("shell32.dll"));
if (NULL != hShell) {
    pShell_NotifyIcon __pShell_NotifyIcon = (pShell_NotifyIcon) ::GetProcAddress(hShell, "Shell_NotifyIcon");
    if (__pShell_NotifyIcon != NULL) {
        __pShell_NotifyIcon(...);
    }
}
... << RSDN@Home 1.1.4 stable SR1 rev. 568>>
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.