Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using capCreateCaptureWindow

244 views
Skip to first unread message

MW

unread,
Apr 2, 2000, 4:00:00 AM4/2/00
to
I use Borland 5.02 for Windows 95 & would like to create Avi files by saving
incremental Screenshots.

According to the Help File, capCreateCaptureWindow() is the place to start.

However, this gives me the error:-
*.exe is linked to missing export MSVFW.DLL:capCreateCaptureWindowA

A "Quick view" of MSVFW.DLL shows that capCreateCaptureWindowA is not
defined there, although I'm not sure whether it should be.

Please could someone tell me whether I should be doing anything else to get
this working?

Thanks, Mark

D. Jacobs

unread,
Apr 2, 2000, 4:00:00 AM4/2/00
to
On Sun, 2 Apr 2000 19:07:58 +0100, "MW" <mw...@mw001.fsnet.co.uk>
wrote:

Is there a 'VFW32.LIB' file included with Borland? This is the normal
lib file that you'd use with VC++.

=====================================================
Change the 'Y' in my domain name to 'E' in order
to send email.
=====================================================

MW

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
<<Is there a 'VFW32.LIB' file included with Borland? This is the normal lib
file that you'd use with VC++.>>
Thanks for your reply.

Unfortunately, that lib file is not included on my system, nor anywhere on
the original setup disk.
I tried including the MSVFW.DLL in my project, hoping to create the lib file
with ImpLib, but the dll was already in use.

Do you think this omission was an oversight by Borland?
Would it be possible to download the .lib from somewhere?

Any further comments would be appreciated.
Mark

Markus Zingg

unread,
Apr 5, 2000, 3:00:00 AM4/5/00
to
Mark

How about loading the dll dynamically? At least it solved the problem for me
using Borland....

HINSTANCE avicap = (HINSTANCE) 0;

FARPROC CreateCaptureWindow;
...
declare other functions you may need...
....

if( ( avicap = LoadLibrary( "AVICAP32.DLL" ) ) == (HINSTANCE) 0 )
{
something went really wrong...

}

...

CreateCaptureWindow = GetProcAddress(
avicap, "capCreateCaptureWindowA" );

repeat this for every function you need

call the functions you need

when you are finished (at programm exit) call

if( avicap != (HINSTANCE) 0 )
{
FreeLibrary( avicap );
avicap = (HINSTANCE) 0;
}


HTH

Markus

MW <mw...@mw001.fsnet.co.uk> schrieb in im Newsbeitrag:
8cau61$648$1...@news5.svr.pol.co.uk...

Avery Lee

unread,
Apr 7, 2000, 3:00:00 AM4/7/00
to
"Markus Zingg" <m.z...@mbs.bg> wrote:

>How about loading the dll dynamically? At least it solved the problem for me
>using Borland....

Ugh. I used this method for a NT Virtual DOS Machine driver, and it was
awful. At the least, install a copy of the Platform SDK to get the .LIB
files. A better solution, though, might be to install the Borland C++ 5.5
command-line compiler, available free from the Borland site. I haven't
used it for any VFW projects, but it comes with a VFW32.LIB file in the
Lib\PSDK directory that looks like it contains the needed imports.

>MW <mw...@mw001.fsnet.co.uk> schrieb in im Newsbeitrag:
>8cau61$648$1...@news5.svr.pol.co.uk...
>> <<Is there a 'VFW32.LIB' file included with Borland? This is the normal
>lib
>> file that you'd use with VC++.>>
>> Thanks for your reply.
>>
>> Unfortunately, that lib file is not included on my system, nor anywhere on
>> the original setup disk.
>> I tried including the MSVFW.DLL in my project, hoping to create the lib
>file
>> with ImpLib, but the dll was already in use.
>>
>> Do you think this omission was an oversight by Borland?
>> Would it be possible to download the .lib from somewhere?
>>
>> Any further comments would be appreciated.
>> Mark
>>
>>
>

-- Avery Lee (ule...@umail.ucsb.edu)
http://www.concentric.net/~psilon/

VirtualDub 1.3a: AVI/MPEG-to-AVI processing utility with integrated capture.
Free, and includes source.

0 new messages