directx

directx

Post by Kane Swif » Tue, 19 Dec 2000 18:15:32



You should read a book on DirectX on how to use DirectSound since this isn't
LCC specific.

DirectX (and thus DirectSound) is accessed through COM and LCC work with
COM, although it's a little more cumbersome than using a C++ (e.g. Microsoft
Visual C++) compiler.

If you look in the header files you should find dsound.h which you can
include in your C program and you can use the functions/macros to call
DirectSound methods.


Quote:> Where can I find examples how to use directx (direct sound) with LCC.

 
 
 

directx

Post by Kane Swif » Fri, 22 Dec 2000 16:21:06


I have the same book but I haven't tried any serious programming with
DirectSound under LCC. I did test DirectDraw a little and that seemed to
work, like you said.


Quote:> I am reading a book "windows game programing for dummies".
> But I don't know how to use DirectSound with LCC.
> When I even include dsound.h I get errors like this:

> Warning f:\lcc\omat\aani\aani.c: f:\lcc\include\dsound.h: 22  no type
> specified. Defaulting to int
> Error f:\lcc\omat\aani\aani.c: f:\lcc\include\dsound.h: 22  Syntax error;
> missing semicolon before  `*'
> Warning f:\lcc\omat\aani\aani.c: f:\lcc\include\dsound.h: 22  no type
> specified. Defaulting to int
> Error f:\lcc\omat\aani\aani.c: f:\lcc\include\dsound.h: 78  syntax error;
> found `LPWAVEFORMATEX' expecting `}'

> DirectDraw, DirectInput and OpenGL work fine.

> > You should read a book on DirectX on how to use DirectSound since this
> isn't
> > LCC specific.

> > DirectX (and thus DirectSound) is accessed through COM and LCC work with
> > COM, although it's a little more cumbersome than using a C++ (e.g.
> Microsoft
> > Visual C++) compiler.

> > If you look in the header files you should find dsound.h which you can
> > include in your C program and you can use the functions/macros to call
> > DirectSound methods.


 
 
 

1. DirectX FAQ/Links to DirectX version 5

See:
http://www.avault.com/hardware/directx.asp
--
******************************************************************
For help, tips and links for DOS, Windows 95 or Win 3.x see my   *
"DOS/Windows Help Page": http://pw2.netcom.com/~stotzerm/help.html
******************************************************************

2. record a macro

3. DirectX

4. NFNF Expired Warning

5. DirectX updates for xbox?

6. ram usage

7. Will Xbox ever allow DirectX Version to be updated?

8. Is Office Service Pack safe?

9. no one can run NS 3.2 and use Win95 DirectX !?!?

10. D3D dead due to DirectX / Detonator update? Help..

11. printer problem re DirectX

12. Vid Card and DirectX 8.1... somethins not right...

13. no version of directX working on compaq 1700 Armada