I wrote a small function to encapsulate the ChooseColor dialog box,
But when I run the code under Win 98 it drains 20% of system resources, no dialog box shows, but pressing Ctrl+Alt+Del reveals the program is still running. The program will only terminate after about 3 ctrl+alt+del key presses.
In the PB\DLL debugger a GPF is reported and the machine totally locks up and only the reset button is the cure.
I have transferred the program to my website, at:
www.kgpsoftware.freeserve.co.uk/color.exe
Can anyone help ?
-------------
Kev G Peel
KGP Software
Bridgwater, UK.
mailto:[email protected][email protected]</A>
Code:
Function SelectColor(ByVal hParent As Long, ByVal iStartColor As Long, ByVal iUseExt As Long) As Long Local cca As ChooseColorApi cca.hinstance = 0 cca.lStructSize = SizeOf(cca) cca.Flags = %CC_RGBINIT If iUseExt = 0 Then cca.Flags = cca.Flags Or %CC_PREVENTFULLOPEN cca.hwndowner = hParent cca.rgbResult = iStartColor If ChooseColor(cca) Then Function = cca.rgbResult End Function
In the PB\DLL debugger a GPF is reported and the machine totally locks up and only the reset button is the cure.
I have transferred the program to my website, at:
www.kgpsoftware.freeserve.co.uk/color.exe
Can anyone help ?
-------------
Kev G Peel
KGP Software
Bridgwater, UK.
mailto:[email protected][email protected]</A>
Comment