Thread View: borland.public.cppbuilder.multimedia
6 messages
6 total messages
Started by Helios
Thu, 02 May 2002 04:31
Problems with DirectX8.1 directshow
Author: Helios
Date: Thu, 02 May 2002 04:31
Date: Thu, 02 May 2002 04:31
7 lines
1260 bytes
1260 bytes
Hi, May I know how to compile DirectShow "BaseClasses" and some of the directshow samples which linked to "streams.h" file. As both of them will cause the errors generate at "amfilter.h" Also, do anyone know which website will teach most of the implementation of directshow using C++ builder5? As I only know the following http://www.geocities.com/foetsch/ quite useful, but not much directshow implementation. Thanks for your help!
Re: Problems with DirectX8.1 directshow
Author: PGus
Date: Fri, 03 May 2002 00:35
Date: Fri, 03 May 2002 00:35
22 lines
1972 bytes
1972 bytes
Can you share with us what you specificaly want to do with DirectShow? Just to note: I've built a DirectShow C++ VCL that we hope to offer the community soon, that provides playback (music, video). We're contemplating moving it to Delphi for wider usage, but if there's community interest in the C++ VCL we might offer that first. If you're trying to do it yourself, then be sure you create the proper Borland LIB files from the DirectX DLLs (e.g. strmiids.lib). Paul Gustavson "Helios" <hdchoy@hotmail.com> wrote in message news:3cd0c136$1_1@dnews... > > Hi, > May I know how to compile DirectShow "BaseClasses" and some of the directshow samples which linked to "streams.h" file. As both of them will cause the errors generate at "amfilter.h" > Also, do anyone know which website will teach most of the implementation of directshow using C++ builder5? As I only know the following > http://www.geocities.com/foetsch/ > quite useful, but not much directshow implementation. > Thanks for your help! >
Re: Problems with DirectX8.1 directshow
Author: Michael Goldweber
Date: Fri, 03 May 2002 14:43
Date: Fri, 03 May 2002 14:43
49 lines
3013 bytes
3013 bytes
Hi Paul, I think what Helios is asking, and also what I am trying to figure out is: What are the steps necessary to setup the DirectX SDK to work with Borland Builder? Unless I am misunderstanding something (which is very possible ;-)), the programmer needs to setup the DirectX SDK to be able to use DirectShow. Some other questions: 1. Once you have a set of the DirectX files that have been implib'ed (like the ones available from the Borland website), what are you supposed to do with them? Which directory are they stored in, and how does the compilier need to be set to recognize these new library files? 2. When making the project, what files (if any) need to be added to the project beyond the regular set of .h, .cpp, and .dfm files? I'm planning on using DirectShow to capture video images from our customer's video cameras. They want the ability to capture still images, series of still images, or to create mpeg files. Thanks for any help you can provide, Mike Goldweber PGus wrote: > Can you share with us what you specificaly want to do with DirectShow? > Just to note: I've built a DirectShow C++ VCL that we hope to offer the > community soon, that provides playback (music, video). We're contemplating > moving it to Delphi for wider usage, but if there's community interest in > the C++ VCL we might offer that first. If you're trying to do it yourself, > then be sure you create the proper Borland LIB files from the DirectX DLLs > (e.g. strmiids.lib). > > Paul Gustavson > > "Helios" <hdchoy@hotmail.com> wrote in message news:3cd0c136$1_1@dnews... > > > > Hi, > > May I know how to compile DirectShow "BaseClasses" and some of the > directshow samples which linked to "streams.h" file. As both of them will > cause the errors generate at "amfilter.h" > > Also, do anyone know which website will teach most of the implementation > of directshow using C++ builder5? As I only know the following > > http://www.geocities.com/foetsch/ > > quite useful, but not much directshow implementation. > > Thanks for your help! > >
Re: Problems with DirectX8.1 directshow
Author: nicolasr
Date: Fri, 03 May 2002 21:20
Date: Fri, 03 May 2002 21:20
25 lines
2083 bytes
2083 bytes
Hi all, first of all here is a link that provides the DirectShow base classes for CBuilder and other material: http://slydiman.compass.com.ru/eng/mmedia/mmedia.htm I have the libs in a different folder than CBuilder\lib. Setting the lib path to this folder never worked for me, BCB didn't seem to find the libs. So when the linker gets me unresolved externals I know I need to add one of these libs to the project by hand! Project->Add To Project etc. Sometimes I had unresolved externals because of GUIDs or CLSIDs but I did not know which lib contains them. In that case I did a text search with the explorer search dialog. Regarding the header files: CBuilder ships with some DirectX headers, but you need the headers compatible with your libs. Since I ordered the DirectX CD from MS I had newer headers than those that came with BCB. I removed all DirectX headers from CBuilder\include and copied my new headers there instead. Since this folder is in the path by default, there should nothing more to do! regards, Nick
Re: Problems with DirectX8.1 directshow
Author: Michael Goldweber
Date: Fri, 03 May 2002 22:47
Date: Fri, 03 May 2002 22:47
46 lines
2788 bytes
2788 bytes
Hi Nick,
First, thanks for your help with getting this set up. I really appreciate it.
I've done what you and the slydiman website said to do. Right now I'm getting
the following errors for the strmif.h and control.h file:
[C++ Error] strmif.h(860): E2257 , expected.:
typedef DWORD_PTR HSEMAPHORE;
[C++ Error] strmif.h(2578): E2303 Type name expected.
/* [in] */ HSEMAPHORE hSemaphore,
Have you ever seen anything like this? Any ideas why this error would pop up
from the SDK's header file? If it matters, I'm running Builder 4.
Thanks again,
Mike Goldweber
nicolasr wrote:
> Hi all,
> first of all here is a link that provides the DirectShow base classes for
> CBuilder and other material:
>
> http://slydiman.compass.com.ru/eng/mmedia/mmedia.htm
>
> I have the libs in a different folder than CBuilder\lib. Setting the lib
> path to this folder never worked for me, BCB didn't seem to find the libs.
> So when the linker gets me unresolved externals I know I need to add one of
> these libs to the project by hand!
> Project->Add To Project etc.
> Sometimes I had unresolved externals because of GUIDs or CLSIDs but I did
> not know which lib contains them. In that case I did a text search with the
> explorer search dialog.
>
> Regarding the header files: CBuilder ships with some DirectX headers, but
> you need the headers compatible with your libs. Since I ordered the DirectX
> CD from MS I had newer headers than those that came with BCB. I removed all
> DirectX headers from CBuilder\include and copied my new headers there
> instead. Since this folder is in the path by default, there should nothing
> more to do!
>
> regards,
> Nick
Re: Problems with DirectX8.1 directshow
Author: nicolasr
Date: Fri, 03 May 2002 23:11
Date: Fri, 03 May 2002 23:11
15 lines
1590 bytes
1590 bytes
> [C++ Error] strmif.h(860): E2257 , expected.: > typedef DWORD_PTR HSEMAPHORE; > [C++ Error] strmif.h(2578): E2303 Type name expected. > /* [in] */ HSEMAPHORE hSemaphore, > Sorry, havn't seen this before, but it looks like DWORD_PTR is unknown to the compiler. DWORD_PTR should be something like #define DWORD_PTR DWORD* Either try to find the DWORD_PTR declaration (or #define) in the BCB header files or add the above line to strmif.h for a first try. The second error should be a follow up from the first. Nick
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads