Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: MortenMacFly on February 22, 2006, 12:31:10 pm

Title: Patch: Template for a Direct/X application
Post by: MortenMacFly on February 22, 2006, 12:31:10 pm
I've written a template for a Direct/X application using MS VCTK2003 or GCC (can be chosen). I've uploaded this to BerliOS as patch no. 853. I would be glad if someone else than me could give this a try. It works for me... but I might have missed something. With regards, Morten.
Title: Re: Patch: Template for a Direct/X application
Post by: MortenMacFly on February 22, 2006, 12:47:58 pm
...dammed. How do I upload a ZIP file to BerliOS? It seems not possible. I've attached the "patch" to this post.

[attachment deleted by admin]
Title: Re: Patch: Template for a Direct/X application
Post by: Michael on February 22, 2006, 12:48:28 pm
This is good :). I have just a small question. I have always thought that you have to use M$ Toolkit to fully compile DirectX. You could use GCC, but then you cannot build all. I am not sure about that anyway. And Dev-C++ has a package DirectX. So I think that I was wrong, or?

Thank you very much.

Best wishes,
Michael
Title: Re: Patch: Template for a Direct/X application
Post by: MortenMacFly on February 22, 2006, 12:55:43 pm
And Dev-C++ has a package DirectX. So I think that I was wrong, or?
Yes, you are right. There are two ways: The first: You use the Visual C++ Toolkit 2003 with the MS platform SDK and MS Direct/X SDK. The second: You use the Direct/X DevPack (it's Direct/X 9 I'm using) with the GCC compiler. The DevPack brings all header, libs and DLL files for Direct/X. The system libs are from GCC then. Then you can compile your DX applications with GCC.
Morten.
Title: Re: Patch: Template for a Direct/X application
Post by: Michael on February 22, 2006, 02:02:42 pm
The DevPack brings all header, libs and DLL files for Direct/X. The system libs are from GCC then. Then you can compile your DX applications with GCC.

Ok, I understand, thank you :). Anyway, I suppose that there is a way to compile DirectX directly as the people of the DevPack have done.

Best wishes,
Michael
Title: Re: Patch: Template for a Direct/X application
Post by: mandrav on February 22, 2006, 02:16:19 pm
I suppose that there is a way to compile DirectX directly

lol :lol:

No, there is no way to recompile DirectX. Unless you 're working for Microsoft ;)
You can simply use some tools to create gcc import libraries (.a) from the directx dlls.
Title: Re: Patch: Template for a Direct/X application
Post by: Michael on February 22, 2006, 02:24:08 pm
I suppose that there is a way to compile DirectX directly

lol :lol:

No, there is no way to recompile DirectX. Unless you 're working for Microsoft ;)
You can simply use some tools to create gcc import libraries (.a) from the directx dlls.

Ah, ok. It was too good to be true :D. Anyway, I appreciate the possibility to create gcc import libraries so that I can use gcc instead of M$ Toolkit :).

Best wishes,
Michael
Title: Re: Patch: Template for a Direct/X application
Post by: knue on April 12, 2006, 12:12:17 am
I think there was a copyright issue with the gcc directX headers provided by that devpak.
The original headers were just changed until it worked with gcc. But this is not allowed. That's why this devpak was taken from all official download servers. You can only find this devpak with hard googling.