[Python-Dev] Python as a Metro-style App (original) (raw)
martin at v.loewis.de martin at v.loewis.de
Sun Jan 8 04:42:46 CET 2012
- Previous message: [Python-Dev] Python as a Metro-style App
- Next message: [Python-Dev] Python as a Metro-style App
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Python as a Metro-style App
- Next message: [Python-Dev] Python as a Metro-style App
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]