> I'm pretty new to VB script (well, pretty new, I did some tutorials this
> morning; brought back some memories from the gwbasic days ) and what I want
> to do isn't very standard. I'm trying to access a webcam and show its preview
> stream in a window. I have an example from Microsoft
> (http://msdn.microsoft.com/en-us/library/ms787490.aspx) that uses DirectShow
> to does this. It's a program written in C++ code (and it works), but I'm
> trying to do it in VB script now. I'm quite sure it's possible since it's all
A COM class needs an GUID but not necessarily a ProgID,
this is one out of quite a number of reasons, why some things
in COM can only be done with C++, but not with VB, C# or Java,
and even less things can be done with VBS.
Another reason is that VBS only supports automation datatypes
which is a restricted subset of all types supported by COM.
Yet another reason is that VBS requires IDispatch-support
for any object, which again is optional for COM.
In DirectShow only a small subset of classes do
actually support IDispatch.
> I know I need to use CreateObject, but I just don't know which object names
> to use to create an ICaptureGraphBuilder2 object for example. I also haven't
> got a clue where to find a listing of these object name. I've been googling
> all day for examples, but no luck Any help is appreciated!
I've never seen a VBS-project that does DirectShow
Afaics DirectShow is a pure C++ API. There are some VB-hacks out
though using VB-6 is generally deprecated by MS: http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx
You'll probably have a hard time using VB-6 instead of C++
and VBS-DirectShow is literally impossible.