Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1997-06-02
2
Medium Priority
?
397 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 800 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

916 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