Today, 10:42
Here's a fun one that I haven't noticed in all these years (or at least have forgot) - in Windows Color dialog there are 48 Basic colors, but in reality only 47, because there is one duplicate. Like they say these days, "You had one job" and still they managed to miss that one and haven't corrected it in so many years. See below if you can find the duplicate one ( %CC_PREVENTFULLOPEN makes it a tiny bit harder)..
Code:
#COMPILE EXE
#DIM ALL
TYPE custcolors
clr(15) AS DWORD
END TYPE
'====================================================================
FUNCTION PBMAIN () AS LONG
LOCAL cc AS custcolors, iCol AS LONG
StartHere:
DISPLAY COLOR 0, 0, 0, iCol, cc, %CC_PREVENTFULLOPEN TO iCol '%CC_FULLOPEN
IF iCol = &H400040 THEN
MSGBOX "Success - you found the duplicate Basic color! :)"
ELSEIF iCol > -1 THEN
IF MSGBOX("Nope, try again?", %MB_YESNO) = %IDYES THEN GOTO StartHere
END IF
END FUNCTION