Last update: October 12, 2004 |
Using DirectX 8.1 / DirectShow with C++Builder 6
I recommend download DirectX 8.1 SDK from http://www.microsoft.com/directx/default.asp
Copy all files from subdirectory 'Include' into C++Builder's 'Include', overwrite if exists.
For C++Builder 5 compatibility add in file d3dx8math.inl following string:
#define sqrtf(x) (FLOAT)sqrt(x)
#define asinf(x) (FLOAT)asin(x)
I recommend add in each *.h file following 2 strings:
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
<original code>
#pragma option pop /*P_O_Pop*/
Make necessary libraries using implib.exe tool
>implib.exe dsound.lib dsound.dll
>implib.exe ddraw.lib ddraw.dll
For using DirectX 8.1 / DirectShow with C++Builder you need Borland compatible version of strmiids.lib, dxguid.lib, amstrmid.lib, dmoguids.lib (with GUIDs).
Project properties:
Check "MFC compatibility" on "Advanced Compiler" tab and "Treat enum types as ints" on "Compiler" tab.
Update following lines in BPR file manually:
<PROJECT>
<MACROS>
...
<USERDEFINES value="_MBCS;U__midl"/>
<SYSDEFINES value="_MSC_VER=1100;_NO_VCL;NO_STRICT"/>
...<LINKER>
...
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
Download:
Description | Link #1 | Link #2 | Size | Date |
Simply MediaPlayer with support DirectShow DMO Audio Effect (including source code) | slyplayer.zip | slyplayer.zip | 319K | 04/12/2003 |
All DirectX 8.1 SDK libraries compatible with C++Builder 6, including all GUID LIBs (strmiids.lib) | bcb_dx_lib.zip | bcb_dx_lib.zip | 795K | 12/10/2004 |
All *.h files from DirectX 9 SDK compatible with C++Builder 6 | bcb_dx_include.zip | bcb_dx_include.zip | 1.2M | 12/10/2004 |
DirectX utilities and additional classes (source + DXCommon.lib) | bcb_dx_common.zip | bcb_dx_common.zip | 245K | 12/10/2004 |
DirectShow Base Classes from DirectX 9 SDK (source + StrmBase.lib) | bcb_dshow.zip | bcb_dshow.zip | 1.1M | 12/10/2004 |
DirectShow special effects image filter (EZRGB24.AX) from DirectX 9 SDK
converted for C++Builder 6 (required DirectShow Base Classes). |
bcb_ezrgb24.zip | bcb_ezrgb24.zip | 83K | 12/10/2004 |
The Microsoft DirectX SDK provides a debugging utility called GraphEdit,
After starting GraphEdit, select "Graph | Insert Filter", and
insert the filter in the graph. |
graphedt.zip | graphedt.zip | 151K | 04/12/2003 |
Links:
BCB-Tools.com - DirectX component libraries for BCB
See also:
Fastest 10-band equalizer (DirectShow DMO Audio Effect filter)
[Back]