Hi all,
I just built the project under Win2k + VC6 at work as well...
trying to use quality tools on the app, and running into a problem because
of an exception in the UI code, whenever the options window pops up.
the code in question is at around line 5100 in Win32PreferenceWindow.cpp:
if(lpDlgExRes->dlgVer == 1 && lpDlgExRes->signature == 0xFFFF)
{
lpDlgExRes->style &= ~WS_POPUP;
lpDlgExRes->style &= ~DS_MODALFRAME;
lpDlgExRes->style |= WS_CHILD | WS_OVERLAPPED | DS_CONTROL |
WS_VISIBLE;
}
else
{
lpDlgRes->style &= ~WS_POPUP;
lpDlgRes->style &= ~DS_MODALFRAME;
lpDlgRes->style |= WS_CHILD | WS_OVERLAPPED | DS_CONTROL |
WS_VISIBLE;
}
per the MS knowledge base,
http://support.microsoft.com/support/kb/articles/Q137/2/89.asp :
"When an application writes to its own resources, a page fault occurs, which
is handled internally by the kernel.
To avoid this problem: Don't write to your own resources. The pointer
returned by LockResource should be treated as read-only. This was always the
intention, however, writing to your own resources happens to work on Windows
NT."
My solution was to modify these resources of the freeampui project:
IDD_PREF_UPDATE
IDD_PREF_THEME
IDD_PREF_STREAMING
IDD_PREF_PROFILE
IDD_PREF_PLUGINS
IDD_PREF_GENERAL
IDD_PREF_DIRECTORY
IDD_PREF_DEBUG
IDD_PREF_BROWSER
IDD_PREF_ADVANCED
IDD_PREF_ABOUT
I loaded each one, changed the style of each from POPUP to CHILD, and
checked off CONTROL and VISIBLE on the "More Styles" tab. This allows for
the removal of code quoted above.
Jason Slater
Software Engineering Specialist
Rational Software
the e-development company
Phone:(408) 863-4079
Fax:(408) 863-4909
Email:[EMAIL PROTECTED]
Web:http://www.rational.com
_______________________________________________
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev