Solved

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

Posted on 1997-06-02
2
387 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

13 Experts available now in Live!

Get 1:1 Help Now