how to string → uint* ?

xky via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 27 18:57:42 PDT 2015


hello. :-)
when i was using DerelictSFML2( 
http://code.dlang.org/packages/derelict-sfml2 ), i got this 
problem.

CSFML doc had 'setUnicodeString':
--------------------------------------------------------------------------------
CSFML_GRAPHICS_API void sfText_setUnicodeString  ( sfText *  text,
   const sfUint32 *  string
  )
--------------------------------------------------------------------------------
*'sfUint32' same 'unsigned int'.


how to convert string → uint? i just try that, but not work.
--------------------------------------------------------------------------------
string test = "안녕, こんにちは";
string* test_p = &test;
sfUint32* uintObject = cast(sfUint32*)test_p;
sfText_setUnicodeString( ****, uintObject );
--------------------------------------------------------------------------------

thanks, :)


More information about the Digitalmars-d-learn mailing list