Solved

Toolbar Asset w/VC++ 5.0 in win95 but not winNT

Posted on 1997-06-02
2
388 Views
Last Modified: 2013-11-20
After upgrading to VC++ 5.0, any app that has a toolbar gets a asset as soon as the mouse is moved over the toolbar.  Note: this happens on some win95 machines but not on winNT.

The debug version of the app asserts in tooltip.cpp at line
383 when the mouse is over the toolbar.  

from tooltips.cpp

void CWnd::FilterToolTipMessage(MSG* pMsg)
{
...snip...

                // add a "dead-area" tool for areas between toolbar buttons
                TOOLINFO ti; memset(&ti, 0, sizeof(TOOLINFO));
                ti.cbSize = sizeof(TOOLINFO);
                ti.uFlags = TTF_IDISHWND;
                ti.hwnd = m_hWnd;
                ti.uId = (UINT)m_hWnd;
                if (!pToolTip->SendMessage(TTM_GETTOOLINFO, 0, (LPARAM)&ti))
                {
                        ASSERT(ti.cbSize == sizeof(TOOLINFO));
                        ASSERT(ti.uFlags == TTF_IDISHWND);
                        ASSERT(ti.hwnd == m_hWnd);
                        ASSERT(ti.uId == (UINT)m_hWnd);
line 383 --->      VERIFY(pToolTip->SendMessage(TTM_ADDTOOL, 0,
(LPARAM)&ti));
                }


...snip...
}

0
Comment
Question by:jaustell
2 Comments
 
LVL 4

Expert Comment

by:mbhakta
ID: 1301915
I have not yet been convinced by the features of VC++ 5.0. I have found similar kind of problems while porting my projects across from 4.2 to 5.0. If the project is mission critical. I won't take the risk for some goodies which do nothing.
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 200 total points
ID: 1301916
It's really unprofessional to give such disdainful advice without providing any reasoning, suggestions, or insight.  Certainly, some versions of VC++ have bugs, but it really does noone any good to whine about them without at least explaining what they are and how to avoid them.

Back in the scientific world, it's pretty easy to show that the problem occurs only when you have an older copy of COMCTL32.DLL on your machine.  If you've never installed IE 3.0 or newer on the machine you're using to run this program, you can expect this tooltip code to fail 'cause IE switched around the way one of the tooltip structures looks.

You can read about your specific problem in the Microsoft Knowledgebase in the article at http://www.microsoft.com/kb/articles/q167/6/50.htm.

A fix is probably forthcoming, but you might want to investigate obtaining a newer version of COMCTL32.DLL until then.

.B ekiM

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

25 Experts available now in Live!

Get 1:1 Help Now