2009-06-29 16 views
0

私はa question on buffered drawingの完璧な答えを発見しましたが、何らかの理由でVS2008のバージョンにWriteableBitmapがないようですか?WriteableBitmapを利用できません。

using namespace System::Windows::Media; 
using namespace System::Windows::Media::Imaging; 

をしかし、それは私だけでエラーを与える:私は、ドキュメントごとにreleventの名前空間を含む試した

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にアップデートしましたが、これは何の違いもありませんでした。

答えて

0

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

+0

「WindowsBase」と「PresentationCore」の2つの参照が見つかりませんでした。 –

関連する問題