문제

나는 완벽한 대답이 무엇인지 발견했습니다 버퍼링 된 도면에 대한 질문, 그러나 어떤 이유로 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가 사용하고 있는지 알 수있는 방법이 있습니까? 차이가없는 서비스 팩 1대로 업데이트했습니다.

도움이 되었습니까?

해결책

이를 얻으려면 .NET 프레임 워크 3.0 또는 3.5를 목표로해야합니다. 또한 PresentationCore.dll에 심판을 추가해야합니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top