Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[18.221.146.223] |
|
Сообщ.
#1
,
|
|
|
Мужики, чего не так делаю при создании и проигрывании avi файла. вот код
<br> case WM_CREATE:<br> {<br> <br> hwndAvi = Animate_Create hWnd,IDC_ANIMATE_FRIEND,ACS_AUTOPLAY,hInst);<br> POINT pt;<br> <br> pt.x = 100; <br> pt.y = 100; <br><br> BOOL fl = SetWindowPos(hwndAvi, 0, pt.x, pt.y + 20, <br> 200, 200, <br> SWP_NOZORDER | SWP_DRAWFRAME); <br><br> fl = Animate_Open(hwndAvi, "friend.AVI"); <br> fl = ShowWindow(hwndAvi, SW_SHOW); <br> break;<br> }<br><br> файл friend.avi на месте, в нем звука и подавно нет. блин, не проигрывает его и все тут. IDC_ANIMATE_FRIEND определена, как #define IDC_ANIMATE_FRIEND 108 в resource.h подскажите! |
Сообщ.
#2
,
|
|
|
Может кодек не поставлен? Попробуй вындоус меди, млин, плеером открыть этот ави!
|
Сообщ.
#3
,
|
|
|
Попробуй после открытия Animate_Play вызвать.
|
Сообщ.
#4
,
|
|
|
В хелпе вот чё написано:
Цитата ACM_OPEN wParam = 0; lParam = (LPARAM) (LPSTR) lpszName; // Corresponding macro BOOL Animate_Open(hwnd, lpszName); // Related macro BOOL Animate_Close(hwnd); The ACM_OPEN message opens an AVI clip and displays its first frame in an animation control. Parameters hwnd Handle to the animation control. lpszName Pointer to a buffer that contains the path of the .AVI file or the name of an AVI resource. Alternatively, this parameter can consist of the AVI resource identifier in the low-order word and zero in the high-order word. To create this value, use the MAKEINTRESOURCE macro. If this parameter is NULL, the system closes the .AVI file that was previously opened for the specified animation control, if any. The AVI file or resource specified by lpszName must not contain audio. It must be silent. Вполне возможно, что нужно ещё вызвать Animation_Play(..). Если не поможет, то действуй через MAKEINTRESOURCE - обычно помогает. |
Сообщ.
#5
,
|
|
|
спасибо. ладно, буду действовать через MAKEINTRESOURCE
|