Click here to Skip to main content
15,881,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTrying to create a guid in C++ from my code Pin
LCI31-Oct-07 2:22
LCI31-Oct-07 2:22 
QuestionRe: Trying to create a guid in C++ from my code Pin
David Crow31-Oct-07 2:26
David Crow31-Oct-07 2:26 
AnswerRe: Trying to create a guid in C++ from my code Pin
George L. Jackson31-Oct-07 2:41
George L. Jackson31-Oct-07 2:41 
AnswerRe: Trying to create a guid in C++ from my code Pin
jhwurmbach31-Oct-07 2:30
jhwurmbach31-Oct-07 2:30 
AnswerRe: Trying to create a guid in C++ from my code [modified] Pin
KenThompson31-Oct-07 2:43
KenThompson31-Oct-07 2:43 
GeneralRe: Trying to create a guid in C++ from my code Pin
jhwurmbach31-Oct-07 3:17
jhwurmbach31-Oct-07 3:17 
GeneralRe: Trying to create a guid in C++ from my code Pin
KenThompson1-Nov-07 2:47
KenThompson1-Nov-07 2:47 
QuestionLoad AVI streams with MCIWnd.OpenInterface Pin
sdancer7531-Oct-07 2:04
sdancer7531-Oct-07 2:04 
Hi,

How can i load & play an AviStream using the OpenInterface macro ? My code compiles just fine but it does not show anything.


void CWrapperDlg::OnPlayAVI()
{
// Create the window like you would any Windows control.
m_mciWnd.Create(WS_CHILD | WS_VISIBLE | MCIWNDF_NOPLAYBAR | MCIWNDF_NOERRORDLG | MCIWNDF_NOTIFYERROR, CRect(0, 0, 300,300), this, 1234);

// Open the AVI file.

HRESULT hr;
PAVISTREAM pstream;


AVIFileInit();
hr = AVIStreamOpenFromFile(&pstream, "test.avi", streamtypeVIDEO, 0, OF_READ, NULL);
if (FAILED(hr))
AfxMessageBox("error");


m_mciWnd.OpenInterface((PAVISTREAM) &pstream);


//m_mciWnd.Open(strAVIPath);

// Play the opened AVI file.
m_mciWnd.Play();

// To keep the demo simple - can't play the AVI file more than one time.
((CButton *)GetDlgItem(IDB_PLAY))->EnableWindow(FALSE);
}



Regards,

sdancer75

Questionmaximal number of dialogs Pin
baerten31-Oct-07 1:56
baerten31-Oct-07 1:56 
AnswerRe: maximal number of dialogs Pin
Paresh Chitte31-Oct-07 2:08
Paresh Chitte31-Oct-07 2:08 
GeneralRe: maximal number of dialogs Pin
baerten31-Oct-07 2:16
baerten31-Oct-07 2:16 
AnswerRe: maximal number of dialogs Pin
Shivarudrayya H31-Oct-07 2:17
Shivarudrayya H31-Oct-07 2:17 
AnswerRe: maximal number of dialogs Pin
David Crow31-Oct-07 2:28
David Crow31-Oct-07 2:28 
JokeThanks to you all Pin
baerten31-Oct-07 4:19
baerten31-Oct-07 4:19 
AnswerRe: maximal number of dialogs Pin
Randor 31-Oct-07 4:34
professional Randor 31-Oct-07 4:34 
Questionhow to change the color of message box Pin
rajneshmalik31-Oct-07 1:21
rajneshmalik31-Oct-07 1:21 
AnswerRe: how to change the color of message box Pin
David Crow31-Oct-07 2:29
David Crow31-Oct-07 2:29 
QuestionCursor help: [modified] Pin
Hakan Bulut31-Oct-07 0:41
Hakan Bulut31-Oct-07 0:41 
AnswerRe: Cursor help: Pin
Karismatic31-Oct-07 0:55
Karismatic31-Oct-07 0:55 
GeneralRe: Cursor help: Pin
Hakan Bulut31-Oct-07 1:04
Hakan Bulut31-Oct-07 1:04 
GeneralRe: Cursor help: Pin
Roger Broomfield31-Oct-07 1:39
Roger Broomfield31-Oct-07 1:39 
GeneralRe: Cursor help: Pin
Mark Salsbery31-Oct-07 5:30
Mark Salsbery31-Oct-07 5:30 
GeneralRe: Cursor help: Pin
Hakan Bulut31-Oct-07 6:39
Hakan Bulut31-Oct-07 6:39 
QuestionISAPI filter authentication Pin
imazing10331-Oct-07 0:40
imazing10331-Oct-07 0:40 
QuestionToltip for Combo Box Pin
sheshidar31-Oct-07 0:01
sheshidar31-Oct-07 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.