Pelles C forum

C language => User contributions => Topic started by: TimoVJL on May 31, 2017, 08:54:18 pm

Title: VFW example
Post by: TimoVJL on May 31, 2017, 08:54:18 pm
Small VFW example.
I needed small program to view video, so i made this.
Title: Re: VFW example
Post by: jj2007 on June 01, 2017, 12:54:28 am
I get a MsgBox with "Bad version on 'WinMCI64.ppj'." >:(

Via the commandline it compiles fine, but not all AVI files work with it.
Title: Re: VFW example
Post by: TimoVJL on June 01, 2017, 08:21:59 am
In PellesC v8 poide64.exe needed for 64-bit projects.
Title: Re: VFW example
Post by: Robert on June 01, 2017, 08:31:16 am
Thanks Timo

I'm running Windows 10 64 bit, where there is no vfw32.dll. It has been replaced by msvfw32.dll so I had to change

#pragma comment(lib, "vfw32.lib")

to

#pragma comment(lib, "msvfw32.lib")

I'm not sure, but I think that frankie's SDK must be installed to use the msvfw32.dlls.


Title: Re: VFW example
Post by: TimoVJL on June 01, 2017, 12:21:58 pm
MCIWndCreate function (https://msdn.microsoft.com/en-us/library/windows/desktop/dd757172(v=vs.85).aspx)
Quote
Requirements

Minimum supported client   Windows 2000 Professional [desktop apps only]
Minimum supported server   Windows 2000 Server [desktop apps only]
Header   Vfw.h
Library   Vfw32.lib
DLL   Msvfw32.dll