locked
Convert From StorageFile to Stream Error

    Question

  • the code clip

    StorageFile^ file = Windows::Storage::StorageFile::GetFileFromPathAsync(path);

    IRandomAccessStream^ stream = file->OpenAsync(Windows::Storage::FileAccessMode::Read);

    MyElement->SetSource(stream, file->ContentType);

    Always have syntax error, any right way to convert a storagefile to stream?


    Charlie Chang L



    • Edited by Charlie C Friday, August 3, 2012 4:42 AM
    Friday, August 3, 2012 4:41 AM

Answers

All replies