Thread overview | ||||||
---|---|---|---|---|---|---|
|
February 21, 2006 [?] NOTIFYICONDATA | ||||
---|---|---|---|---|
| ||||
Dm gives me some errors when i try to compile a piece of code to popup a balloon tips... The code: NOTIFYICONDATA notifyData; memset(¬ifyData, 0, sizeof(NOTIFYICONDATA)); notifyData.cbSize = sizeof(NOTIFYICONDATA); notifyData.hWnd = (HWND)m_win->GetHWND(); notifyData.uCallbackMessage = 0; notifyData.uFlags = NIF_MESSAGE; notifyData.uFlags |= NIF_INFO; lstrcpyn(notifyData.szInfo, WXSTRINGCAST message, sizeof(notifyData.szInfo)); lstrcpyn(notifyData.szInfoTitle, WXSTRINGCAST title, sizeof(notifyData.szInfoTitle)); notifyData.dwInfoFlags = icon ; notifyData.uTimeout = timeout; notifyData.uID = 99; res = Shell_NotifyIcon(NIM_MODIFY, ¬ifyData) != 0; I have included <shellapi.h> but it gives me these errors: notifyData.uFlags |= NIF_INFO; ^ src\taskbarIcon.cpp(23) : Error: undefined identifier 'NIF_INFO' lstrcpyn(notifyData.szInfo, WXSTRINGCAST message, sizeof(notifyData.szInfo)); ^ src\taskbarIcon.cpp(25) : Error: 'szInfo' is not a member of struct '_NOTIFYICONDATAA' lstrcpyn(notifyData.szInfoTitle, WXSTRINGCAST title, sizeof(notifyData.szInfoTitle)); and many others... why? |
February 22, 2006 Re: [?] NOTIFYICONDATA | ||||
---|---|---|---|---|
| ||||
Posted in reply to A. Fontana | A. Fontana wrote: > Dm gives me some errors when i try to compile a piece of code to popup a balloon > tips... The code: [snip] > > and many others... why? The info tip feature is a rather new feature in windows, and the windows headerfiles and libraries shipped with Digital Mars are not the most recent. The solution is to download a new "platform sdk" from Microsoft, it's huge but free. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel |
February 22, 2006 Re: [?] NOTIFYICONDATA | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | I've just tried, but digital mars doesn't like Platform SDK headers... It gives me some compile-error. What about linking by the way? A. Fontana In article <dtibjb$2nea$1@digitaldaemon.com>, Bertel Brander says... > >A. Fontana wrote: >> Dm gives me some errors when i try to compile a piece of code to popup a balloon tips... The code: > >[snip] >> >> and many others... why? > >The info tip feature is a rather new feature in windows, and >the windows headerfiles and libraries shipped with Digital >Mars are not the most recent. >The solution is to download a new "platform sdk" from >Microsoft, it's huge but free. > >-- >Absolutely not the best homepage on the net: >http://home20.inet.tele.dk/midgaard >But it's mine - Bertel |
February 22, 2006 Re: [?] NOTIFYICONDATA | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | It works! I've applied the patch by Christof Merrwald. It's not needed to update lib files as long as it seems that digital mars in last version have updated this lib by itself... Good... maybe now i can use video for window too :D A. Fontana In article <dtibjb$2nea$1@digitaldaemon.com>, Bertel Brander says... > >A. Fontana wrote: >> Dm gives me some errors when i try to compile a piece of code to popup a balloon tips... The code: > >[snip] >> >> and many others... why? > >The info tip feature is a rather new feature in windows, and >the windows headerfiles and libraries shipped with Digital >Mars are not the most recent. >The solution is to download a new "platform sdk" from >Microsoft, it's huge but free. > >-- >Absolutely not the best homepage on the net: >http://home20.inet.tele.dk/midgaard >But it's mine - Bertel |
Copyright © 1999-2021 by the D Language Foundation