Affichage des articles dont le libellé est argument type mismatch ??. Afficher tous les articles
Affichage des articles dont le libellé est argument type mismatch ??. Afficher tous les articles

vendredi 22 juillet 2016

argument type mismatch ??

COL_WHITE is by convention probably defined as an embedded color code:

PHP Code:

{FFFFFF// white 

Embedded color codes can only be used in the middle of strings, hence them being embedded:

PHP Code:

""COL_WHITE"This is white\n"COL_GREEN"While this is green." 

Colors as function arguments must be in their hexadecimal form:

PHP Code:

0xFFFFFFFF //white 

In your case, you should define the color with its hexadecimal value:

PHP Code:

#define COLOR_WHITE 0xFFFFFFFF 

Let's block ads! (Why?)



argument type mismatch ??