Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. vc7 application problems in win98

vc7 application problems in win98

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelpquestiontutorialannouncement
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stefan Dahlin
    wrote on last edited by
    #1

    Hi I have a problem with a application that i have written in vc7. It works perfect in Win XP and Win 2000. But fails in Win 98 and Win ME. This is what happends. When i hover the mouse above a toolbar button the application terminates when the tooltip for the button is about to be shown. I tried to debug, and the debugger stop in comctl32.dll. But i don't know what to do about it. The second problem i have is that i have a list control where i can edit the items on every row. I can have a DateTime control, edit controls and comboboxes. It is no problem when i use the datetime or the edit controls. But if i begin to edit in a combobox, when i leave the combobox i get a GPF in User.exe. And the debugger can't give me any help. Im guessing that all this have something to do with different versions of system dll's. But i'm not sure, and i don't know how to find out which dll's to update. Or if i could work around these problems. So my question is how could i make my application work in win98? Because it should be possible to write a application in XP and then it should work in Win 98, right? And i don't think that i'm doing anything advanced. So i can't understand why it won't work all the way.

    A M 2 Replies Last reply
    0
    • S Stefan Dahlin

      Hi I have a problem with a application that i have written in vc7. It works perfect in Win XP and Win 2000. But fails in Win 98 and Win ME. This is what happends. When i hover the mouse above a toolbar button the application terminates when the tooltip for the button is about to be shown. I tried to debug, and the debugger stop in comctl32.dll. But i don't know what to do about it. The second problem i have is that i have a list control where i can edit the items on every row. I can have a DateTime control, edit controls and comboboxes. It is no problem when i use the datetime or the edit controls. But if i begin to edit in a combobox, when i leave the combobox i get a GPF in User.exe. And the debugger can't give me any help. Im guessing that all this have something to do with different versions of system dll's. But i'm not sure, and i don't know how to find out which dll's to update. Or if i could work around these problems. So my question is how could i make my application work in win98? Because it should be possible to write a application in XP and then it should work in Win 98, right? And i don't think that i'm doing anything advanced. So i can't understand why it won't work all the way.

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      http://www.dependencywalker.com use profile menu

      1 Reply Last reply
      0
      • S Stefan Dahlin

        Hi I have a problem with a application that i have written in vc7. It works perfect in Win XP and Win 2000. But fails in Win 98 and Win ME. This is what happends. When i hover the mouse above a toolbar button the application terminates when the tooltip for the button is about to be shown. I tried to debug, and the debugger stop in comctl32.dll. But i don't know what to do about it. The second problem i have is that i have a list control where i can edit the items on every row. I can have a DateTime control, edit controls and comboboxes. It is no problem when i use the datetime or the edit controls. But if i begin to edit in a combobox, when i leave the combobox i get a GPF in User.exe. And the debugger can't give me any help. Im guessing that all this have something to do with different versions of system dll's. But i'm not sure, and i don't know how to find out which dll's to update. Or if i could work around these problems. So my question is how could i make my application work in win98? Because it should be possible to write a application in XP and then it should work in Win 98, right? And i don't think that i'm doing anything advanced. So i can't understand why it won't work all the way.

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Stefan Dahlin wrote: When i hover the mouse above a toolbar button the application terminates when the tooltip for the button is about to be shown. There are two versions of the TTN_GETDISPINFO (formerly called TTN_NEEDTEXT) message, one ANSI and one Unicode. Make sure that your code isn't hard-coded to assume Unicode, because on 9x the ANSI version of the message is used. --Mike-- I'm bored... Episode I bored. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

        S 2 Replies Last reply
        0
        • M Michael Dunn

          Stefan Dahlin wrote: When i hover the mouse above a toolbar button the application terminates when the tooltip for the button is about to be shown. There are two versions of the TTN_GETDISPINFO (formerly called TTN_NEEDTEXT) message, one ANSI and one Unicode. Make sure that your code isn't hard-coded to assume Unicode, because on 9x the ANSI version of the message is used. --Mike-- I'm bored... Episode I bored. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

          S Offline
          S Offline
          Stefan Dahlin
          wrote on last edited by
          #4

          That is an interesting thought. But i'm using the plain CToolBar that is created automatically by vc7 when i created my project. And shouldn't that one work on win 98? I've found out that my combobox problem only occrus when i have a ordinary combobox dropdown list, and i can write text in the edit-ctrl part of the combobox. The program does not terminate when i exit a combobox dropdown list. And this is strange, since i'm using the same combobox class for both types. This is the worst problem of the two that i have, so any little tiny idea on what i can do to find out the problem is appreciated. And i think that it is strange that it works without any problem in win 2000 and xp.

          1 Reply Last reply
          0
          • M Michael Dunn

            Stefan Dahlin wrote: When i hover the mouse above a toolbar button the application terminates when the tooltip for the button is about to be shown. There are two versions of the TTN_GETDISPINFO (formerly called TTN_NEEDTEXT) message, one ANSI and one Unicode. Make sure that your code isn't hard-coded to assume Unicode, because on 9x the ANSI version of the message is used. --Mike-- I'm bored... Episode I bored. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

            S Offline
            S Offline
            Stefan Dahlin
            wrote on last edited by
            #5

            Maybe i have this problem on another place in the code. The following code is a part of the OnToolTipText function: #ifndef _UNICODE if (pNMHDR->code == TTN_NEEDTEXTA) lstrcpyn(pTTTA->szText, strTipText, 80); else _mbstowcsz(pTTTW->szText, strTipText, 80); #else if (pNMHDR->code == TTN_NEEDTEXTA) _wcstombsz(pTTTA->szText, strTipText, 80); else lstrcpyn(pTTTW->szText, strTipText, 80); #endif This should handle the difference between XP and Win98, right? But it doesn't. My program works fine in XP, but terminates in Win98. Does it matter that i develop in vc7 on XP? And then try to run the exe on Win98? But i think that it should work anyway. Please, someone, help!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups