How to use BitmapDecoder in C++ VS2012 ? error C2248


  • I want to use BitmapDecoder, but buildding happened error .

    I don't find example about use BitmapDecoder by C++.

    error message:

    error C2248: 'Windows::Graphics::Imaging::BitmapDecoder::BitmapDecoder'

    Environment : VS2012 C++.

     create_task( file->OpenAsync(Windows::Storage::FileAccessMode::Read) ).then( [this](IRandomAccessStream^ fileStream)
    auto decoder = ref new BitmapDecoder->CreateAsync( fileStream ); //Error


    • Edited by KC-Steven Friday, September 27, 2013 3:52 AM
    Friday, September 27, 2013 3:49 AM


All replies