Solved

VC++ 6 ,Old version of commctrl.dll ,no NIF_INFO identified to add a Balloon tip to systray!?

Posted on 2004-10-20
3
397 Views
Last Modified: 2008-01-09
I am using VC++ 6 on WinXP Pro SP2 ,I've built this small project based on a Dialog
and it is very simple training purposed app.

The problem is this, after I've added an icon to the status bar(systray) I tried to add a balloon
using the NIF_INFO with Shell_NotifyIcon(), it didn't work, it seems that I'm running an old version
of shellapi and or shell.dll, I opened the commctrl.h header file to find out it's version is 1.2
and that the following macro is defined: #define _WIN32_IE 0x0400, whilest it should be at
leaset 0x0500 for the NOTIFYICONDATA structure to have the additional NIF_INFO.. etc. values.

My questuin is how to update this situation.

Note: I have tried the following,
#define _WIN32_IE 0x0500
#include<commctrl.h>
and the rebuild the project ...it didn't work.

I get an unidentified var error, when I also use GetDllVersion() to determine which ver. the
project is using, although I do know it's 0x0400.


If you have the answer to my querry, please do not hesitate to help me.THANX!

0
Comment
Question by:aboo_s
3 Comments
 
LVL 16

Accepted Solution

by:
nonubik earned 125 total points
ID: 12359997
You need to have shell32.dll v5.0 at least
and #define _WIN32_IE 0x0500
NOTIFYICONDATA structure (and NIF_INFO, too) is in shellapi.h
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question