vc7 application problems in win98
-
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.
-
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.
http://www.dependencywalker.com use profile menu
-
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.
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 calledTTN_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 -
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 calledTTN_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_HelmThat 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.
-
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 calledTTN_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_HelmMaybe 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!!