|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - [?] 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? 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: 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: 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: Feb 22 2006
|