This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int GetColorsBits() | |
{ | |
HDC hScreenDC = GetDC(0); | |
int nColorBits = GetDeviceCaps(hScreenDC, BITSPIXEL) * GetDeviceCaps(hScreenDC, PLANES); | |
ReleaseDC(NULL, hScreenDC); | |
return nColorBits; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void removeQuotes(LPSTR szCommand) | |
{ | |
int nGet = 0, nSet = 0; | |
while (szCommand[nGet] != '\0') | |
{ | |
if (szCommand[nGet] == '\"') | |
nGet++; | |
else | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void StrTrimLeft(char *source, char *dest) | |
{ | |
int nIndex = 0; | |
while (source[nIndex] == ' ') | |
nIndex++; | |
strcpy(dest, &source[nIndex]); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO `music`.`genre` | |
VALUES (0, 'Blues'), | |
(1, 'Classic Rock'), | |
(2, 'Country'), | |
(3, 'Dance'), | |
(4, 'Disco'), | |
(5, 'Funk'), | |
(6, 'Grunge'), | |
(7, 'Hip-Hop'), | |
(8, 'Jazz'), |
NewerOlder