Hi,
I am using the following code after googling to generate a message:
NOTIFYICONDATA nid = {};
AllocConsole();
HWND h =...// ;
nid.cbSize = sizeof(nid);
nid.hWnd = h;
nid.uFlags = NIF_ICON | NIF_TIP | NIF_INFO;
nid.hIcon = (HICON)LoadImage(NULL, L"F:\\_el.ico", IMAGE_ICON, 0, 0, LR_LOADFROMFILE | LR_SHARED);
memcpy(nid.szTip, "MY TOOLTIP!", 128);
memcpy(nid.szInfoTitle, "Hello", 64);
//nid.dwInfoFlags =
Shell_NotifyIcon(NIM_ADD, &nid);
_getch();
Shell_NotifyIcon(NIM_DELETE, &nid);
But unfortunately I can't run the code.
I am using Use Standard Windows Libraries and also referenced shell32.lib
try compiling then i get this error:
Can you show me how to fix this?
Thanks you.