3 个解决方案
#1
还有,
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?
#2
CAnimateCtrl控制就是播放简单的动画用的类,它对AVI有很多限制,其中就包括不能播出声音.
这是中MSDN的话:
Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements:
There must be exactly one video stream and it must have at least one frame.
There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information).
The clip must either be uncompressed or compressed with RLE8 compression.
No palette changes are allowed in the video stream.
这是中MSDN的话:
Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements:
There must be exactly one video stream and it must have at least one frame.
There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information).
The clip must either be uncompressed or compressed with RLE8 compression.
No palette changes are allowed in the video stream.
#3
还有,
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?
#1
还有,
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?
#2
CAnimateCtrl控制就是播放简单的动画用的类,它对AVI有很多限制,其中就包括不能播出声音.
这是中MSDN的话:
Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements:
There must be exactly one video stream and it must have at least one frame.
There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information).
The clip must either be uncompressed or compressed with RLE8 compression.
No palette changes are allowed in the video stream.
这是中MSDN的话:
Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements:
There must be exactly one video stream and it must have at least one frame.
There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information).
The clip must either be uncompressed or compressed with RLE8 compression.
No palette changes are allowed in the video stream.
#3
还有,
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?