Click here to Skip to main content
15,914,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIcon thingie Pin
17-Aug-01 4:48
suss17-Aug-01 4:48 
GeneralRe: Icon thingie Pin
Tomasz Sowinski17-Aug-01 4:53
Tomasz Sowinski17-Aug-01 4:53 
GeneralRe: Icon thingie Pin
17-Aug-01 5:37
suss17-Aug-01 5:37 
GeneralRe: Icon thingie Pin
Tomasz Sowinski17-Aug-01 5:48
Tomasz Sowinski17-Aug-01 5:48 
General"Override" SetForegroundWindow() limitation on win2k+ Pin
Daniel Fallman17-Aug-01 4:11
Daniel Fallman17-Aug-01 4:11 
GeneralRe: Pin
J Patel17-Aug-01 6:32
J Patel17-Aug-01 6:32 
GeneralRe: Pin
Boris Russel17-Aug-01 12:40
Boris Russel17-Aug-01 12:40 
GeneralVfw problems Pin
17-Aug-01 4:05
suss17-Aug-01 4:05 
Hi all,
I'm trying to open a video stream but problems arise. Have a look at the code below:

::CoInitialize(NULL);
::AVIFileInit();
PAVISTREAM pAvi;
HRESULT hr = ::AVIStreamOpenFromFile
(&pAvi, "any.avi", streamtypeVIDEO, 0, OF_READ, NULL);

if (SUCCEEDED(hr))
{
AVISTREAMINFO si;
::AVIStreamInfo(pAvi, &si, sizeof(AVISTREAMINFO)); // <- Works ok
IGetFrame *pGetFrame;
pGetFrame = ::AVIStreamGetFrameOpen(pAvi, NULL); // <- Always returns NULL
if (pGetFrame != NULL)
{
pGetFrame->Release();
}
pAvi->Release();
}
::AVIFileExit();

Now, according to msdn, AVIStreamGetFrameOpen() returns NULL if it could not find a decompressor for this specific file. I can however view the file in windows media player w/o any problems. Doesn't that imply I do have a decompressor installed for this file???

I'm confused. Confused | :confused: Any help on this would be appreciated.

/Niklas
GeneralSDI aplication and worker tread Pin
17-Aug-01 3:13
suss17-Aug-01 3:13 
GeneralRe: SDI aplication and worker tread Pin
Tomasz Sowinski17-Aug-01 3:47
Tomasz Sowinski17-Aug-01 3:47 
GeneralRe: SDI aplication and worker tread Pin
Orbital^17-Aug-01 3:54
Orbital^17-Aug-01 3:54 
GeneralRe: SDI aplication and worker tread Pin
Tomasz Sowinski17-Aug-01 4:02
Tomasz Sowinski17-Aug-01 4:02 
GeneralRe: SDI aplication and worker tread Pin
Orbital^17-Aug-01 4:10
Orbital^17-Aug-01 4:10 
GeneralRe: SDI aplication and worker tread Pin
Tomasz Sowinski17-Aug-01 4:13
Tomasz Sowinski17-Aug-01 4:13 
GeneralRe: SDI aplication and worker tread Pin
Orbital^17-Aug-01 4:17
Orbital^17-Aug-01 4:17 
GeneralRe: SDI aplication and worker tread Pin
Tomasz Sowinski17-Aug-01 4:31
Tomasz Sowinski17-Aug-01 4:31 
Questionhow to program parallel port in NT Pin
zecodela17-Aug-01 0:39
zecodela17-Aug-01 0:39 
AnswerRe: how to program parallel port in NT Pin
17-Aug-01 0:56
suss17-Aug-01 0:56 
GeneralMFC, Rich Edit HELP !!! Pin
lio16-Aug-01 23:59
lio16-Aug-01 23:59 
GeneralRe: MFC, Rich Edit HELP !!! Pin
Tomasz Sowinski17-Aug-01 1:21
Tomasz Sowinski17-Aug-01 1:21 
GeneralRe: 'mfc42ud.lib' is missing Pin
lio17-Aug-01 2:12
lio17-Aug-01 2:12 
GeneralRe: 'mfc42ud.lib' is missing Pin
Tomasz Sowinski17-Aug-01 2:34
Tomasz Sowinski17-Aug-01 2:34 
GeneralRe: MFC, Rich Edit HELP !!! Pin
Per17-Aug-01 1:23
Per17-Aug-01 1:23 
GeneralRe: MFC, Rich Edit HELP !!! Pin
lio17-Aug-01 3:50
lio17-Aug-01 3:50 
GeneralWM_NCPAINT Pin
16-Aug-01 22:55
suss16-Aug-01 22:55 

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.