PDA

View Full Version : [Sources] DirectX headers



Michael Hartlef
14-07-2007, 09:52
This is the site where I got the start for the DirectX headers regarding my TBDI module. They are a little buggy but it is a good start:

http://sp.zdt.ru/sp_pb.php

kryton9
14-07-2007, 20:01
Thanks Mike.

I think if I do anything and at a decent difficulty level it would be to make a conversion tool. I just don't see why we have to do this by hand? If there are rules that a human programmer uses to translate, then why can't a program to do it be written?

I guess if I try one day I might find the reason why. But a good start might be powerBasic headers to thinBasic headers, since they are similar but different.

Anyways thanks for the link, they have a neat demo!

José Roca
16-07-2007, 03:08
I just have posted in my forum wrappers and headers for DirextX 9: Direct3D, D3DX, DirectInput and DirectSound.

Hope you find them useful!

http://www.jose.it-berater.org/smfforum/index.php?topic=1081.0

kryton9
16-07-2007, 04:33
Oh wow, thanks!!

Michael Hartlef
16-07-2007, 07:37
Many thanks Jose! Were they allready tested in a project? And were they created with your TB tool?

José Roca
16-07-2007, 15:30
No, they haven't been thoroughly tested yet because I don't know how to program with DirectX. They have been written by hand because there is not a type library for this component. My TypeLib Browser could be used to generate wrappers for dx7vb.dll and dx8vb.dll, that are a couple of ActiveX that allow to use DirectX7 and DirectX8 with Visual Basic, but not with low-level components that don't have a type library.

Michael Hartlef
16-07-2007, 16:21
By hand? :o Wow, THANK YOU!!!

José Roca
26-07-2007, 15:22
I have made a copuple of changes to TB_DX9.INC
http://www.jose.it-berater.org/smfforum/index.php?topic=1081.0



Added the function D3DCOLOR_COLORVALUE, a translation of the C macro of the same name, that I had forgot to include.



Since there are at least 33 versions of D3DX.DLL, named D3DX_xx.DLL, I have replaced the name of the library with the macro D3DX_DLLNAME. This way, you only have to change MACRO D3DX_DLLNAME = "d3dx9_27.dll" to the name of the DLL installed in your system. If you don't have none installed, you can download it from http://www.threelights.de/index.php?page=projects/d3dx9_xx_dll_files.php



I also have posted an example. Nothing fancy, but at least we know it works.

http://www.jose.it-berater.org/smfforum/index.php?topic=1099.0

kryton9
26-07-2007, 21:38
Thanks Jose, the example worked fine.

Michael Hartlef
26-07-2007, 22:09
Yes, here too, but I had to install the needed DLL. Anyway, with the ability to change the dll name in one go, it will be easy to convert back ;) .

José Roca
26-07-2007, 22:33
There are two components for which I can write wrappers easily: Microsoft Video Control and Microsoft Tuner.

DirectShow is low-level and will require a lot of work, although I probably will do it one of these days.