私はVS2012、Windows Phone 8 SDKを使用しています。カメラにネイティブにアクセスする必要があります。
PhotoCaptureDevice::OpenAsync を呼び出して PhotoCaptureDevice インスタンスを正常に作成し、create_task() と task.then() を使用して、開いているデバイス (mCaptureObject) を取得しました。
でも、
mCaptureObject->Close()
コンパイルエラーを引き起こします。
CameraStream.cpp(xxx): error C2039: 'Close' : is not a member of Windows::Phone::Media::Capture::PhotoCaptureDevice'
ここに msdn へのリンクがあります: PhotoCaptureDevice.Close()
私は photocapturedevice クラス宣言をチェックしました:
public : virtual unknown-type Close() new sealed = Platform::IDisposable::Dispose
Member of Windows::Phone::Media::Capture::PhotoCaptureDevice
Summary:
Releases resources that are associated with the capture device.
何か案が?