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
387 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now