[Python-Dev] Python as a Metro-style App
martin at v.loewis.de
martin at v.loewis.de
Sun Jan 8 04:42:46 CET 2012
Zitat von Antoine Pitrou <solipsis at pitrou.net>:
>> > When you say MoveFile is absent, is MoveFileEx supported instead?
>>
>> WinRT strongly prefers asynchronous methods for all lengthy
>> operations. The most likely call to use for moving files is
>> StorageFile.MoveAsync.
>> http://msdn.microsoft.com/en-us/library/windows/apps/br227219.aspx
>
> How does it translate to C?
Not sure whether you are asking literally for *C*: please remember that
my original report said that C is apparently not currently supported for
Apps.
In any case, for native C++ code, do
StorageFile ^the_file = something();
the_file->MoveAsync(destinationFolder, "newfile.txt");
This may look like managed C++ to you, but it really compiles into
native code.
Regards,
Martin
More information about the Python-Dev
mailing list