Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

tooltips assert in tooltip.cpp line 383

Posted on 1998-08-04
3
474 Views
Last Modified: 2013-11-19
When ever I position my mouse over a tool bar button of a debug build, an assert from tooltip.cpp line 383 is triggered.    The line referenced is the last line in the "if" block below.   Anyone know what is causing this?   I've tested this using a fresh "App Expert created project" and get the same results.

      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);
                  VERIFY(pToolTip->SendMessage(TTM_ADDTOOL, 0, (LPARAM)&ti));
            }

I am using MSVC 5.0 (but I get the same results with version 4.2)    I've also recently reinstalled Windows 95 and MSVC 5.0.
0
Comment
Question by:JohnWeidner
3 Comments
 

Author Comment

by:JohnWeidner
ID: 1320209
The problem turned out to be that an incompatible mfc42d.dll file had been installed into my c:\windows\system directory.    After replacing that file, the problem went away.
0
 
LVL 1

Expert Comment

by:elf_k
ID: 1320210
In the release build I guess there is no tooltips at all?
I've got the same error when install my app on a fresh copy of old Windows 95. Probable cause - incorrect version of comctl32.dll. I avoid this problem by installing MSIE 3.01 (or higher) - it updates this dll. Suppose it helps.
0
 
LVL 9

Accepted Solution

by:
Priyesh earned 100 total points
ID: 1320211
This is microsoft documented. You won't get any tooltips in the release build but it will bomb all the way in a debug build. This is because of the older version of comctl32.dll. As elf_k has pointed, U can get a comctl installer pack from the microsoft site which upgrades u'r comctl32.dll to the latest one.. or u install ie4. If u wish to distribute u'r app with an installation, u should go for the common control installer from microsoft which is freely downloadable..
   Best wishes.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 151
deburging in oracle form 12 104
maven archtype selection in eclipse 1 57
no14 challenge 14 70
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

840 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