0

バッファリングされた描画に関する質問に対する完璧な答えが何であるかを発見しましたが、何らかの理由で、私のバージョンの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に更新しましたが、違いはありませんでした。

4

1 に答える 1

0

これを取得するには、.NetFramework3.0または3.5をターゲットにする必要があります。また、PresentationCore.dllに参照を追加する必要があります。

于 2009-06-29T00:27:17.363 に答える