Home » U++ Library support » U++ Widgets - General questions or Mixed problems » does exist a HtmlToColor?
Re: does exist a HtmlToColor? [message #10308 is a reply to message #10307] |
Sun, 01 July 2007 16:57  |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
Routines you can use to convert from hex text string:
unsigned stou(const char *ptr, void *endptr = NULL, unsigned base = 10);
inline unsigned stou(const byte *ptr, void *endptr = NULL, unsigned base = 10) { return stou((const char *)ptr, endptr, base); }
unsigned stou(const wchar *ptr, void *endptr = NULL, unsigned base = 10);
uint64 stou64(const char *s, void *endptr = NULL, unsigned base = 10);
int ScanInt(const char *ptr, const char **endptr = NULL, int radix = 10);
int ScanInt(const wchar *ptr, const wchar **endptr = NULL, int radix = 10);
(Use 16 instead of 10...)
|
|
|
Goto Forum:
Current Time: Sat Jun 07 16:31:24 CEST 2025
Total time taken to generate the page: 0.05547 seconds
|