バッファリングされた描画に関する質問に対する完璧な答えが何であるかを発見しましたが、何らかの理由で、私のバージョンのVS2008にはWriteableBitmap
?がないようです。ドキュメントに従って、関連する名前空間を含めてみました。
using namespace System::Windows::Media;
using namespace System::Windows::Media::Imaging;
しかし、それは私にエラーを与えるだけです:
d:\experiments\graphicscontrols\graphicscontrollib\GraphicsControlLibControl.h(9) : error C2039: 'Media' : is not a member of 'System::Windows'
d:\experiments\graphicscontrols\graphicscontrollib\GraphicsControlLibControl.h(10) : error C3083: 'Media': the symbol to the left of a '::' must be a type
d:\experiments\graphicscontrols\graphicscontrollib\GraphicsControlLibControl.h(10) : error C2039: 'Imaging' : is not a member of 'System::Windows'
d:\experiments\graphicscontrols\graphicscontrollib\GraphicsControlLibControl.h(52) : error C2065: 'WriteableBitmap' : undeclared identifier
古いバージョンの.netなどをインストールしていますか?Visual Studioが使用しているバージョンを確認する方法はありますか?VSをサービスパック1に更新しましたが、違いはありませんでした。