c++.windows.32-bits - [?] NOTIFYICONDATA
- A. Fontana (27/27) Feb 21 2006 Dm gives me some errors when i try to compile a piece of code to popup a...
- Bertel Brander (11/15) Feb 22 2006 The info tip feature is a rather new feature in windows, and
- A. Fontana (4/19) Feb 22 2006 I've just tried, but digital mars doesn't like Platform SDK headers...
- A. Fontana (7/22) Feb 22 2006 It works! I've applied the patch by Christof Merrwald.
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?
Feb 21 2006
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
Feb 22 2006
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
Feb 22 2006
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
Feb 22 2006