Unicode: how to properly read and display directory entries?

Kagamin spam at here.lot
Fri Nov 5 06:59:26 PDT 2010


Tyro[a.c.edwards] Wrote:

> void main(string[] args)
> {
> 	bool callback(DirEntry* de)
> 	{
> 		if (de.isfile)
> 			mciPlay(toUTF8(de.name));
> 		return true;
> 	}
> 
> 	listdir("snd", &callback);
> }

You should also use W-functions. Bindings to A-functions in std.c.windows.windows is a bug.


More information about the Digitalmars-d-learn mailing list