2009-06-29 8 views
0

a question on buffered drawing에 대한 완벽한 해답을 찾았습니다. 그러나 어떤 이유로 VS2008의 버전에 WriteableBitmap이없는 것 같습니까? 나는 문서에 따라,와 관계있는 네임 스페이스를 포함하여 시도했다 :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 

내가 그물의 이전 버전이 설치되어 있습니까 또는 무언가? 어떤 버전의 Visual Studio를 사용하고 있는지 알 수있는 방법이 있습니까? 차이점이없는 서비스 팩 1로 VS를 업데이트했습니다.

답변

0

.Net 프레임 워크 3.0 또는 3.5를 대상으로 지정해야합니다. 또한 PresentationCore.dll에 대한 참조를 추가해야합니다.

+0

감사합니다. 'WindowsBase'및 'PresentationCore' –

관련 문제