Sign in to follow this  
Moe

Managed vs. Unmanaged (DX)...

Recommended Posts

Moe    1256
I haven't done a lot of reading on the subject, but what are the differences between managed and unmanaged DirectX? How about managed vs. unmanaged C++? I did a little looking in the SDK but I really didn't see a decent breakdown of it. From my limited and weak understanding of things, managed DirectX is used with another managed language (managed C++, VB.NET, C#), and includes some things like automatic garbage collection. By the sounds of it, it almost reminds me of Direct3D Retained mode... Am I even close?

Share this post


Link to post
Share on other sites
supercoder74    154
Sort of. If you are only using unmanaged DX, and you have no interest in learning c# or another managed language, I would reccomend just sticking to the unmanaged version. But, if you are using managed code for everything but DX, I would reccomend managed DX. Bassicly, it's like choosing ruby to perl. It is a matter of choice, and a matter of preference.

Share this post


Link to post
Share on other sites
Armadon    1091
Managed DirectX is a wrapper around unmanaged DirectX. The languages that you can use with Managed DirectX are Managed C++, C++/CLI, C#, VB.NET, IronPython and other managed languages that you can run on the CLR (common language runtime). The CLR handles garbage collection (memory handling) and other things...

Unmanaged DirectX can be used with C++, VB6 and other unmanaged languages that can handle COM.

I hope this helps.
Take care.

Share this post


Link to post
Share on other sites
Moe    1256
Well, I thought about using VB.NET to create a level editor of sorts, I suppose managed DirectX could come in handy. Is it somewhat simplified compared to the unmanaged counterparts?

Share this post


Link to post
Share on other sites
Armadon    1091
Quote:

Well, I thought about using VB.NET to create a level editor of sorts, I suppose managed DirectX could come in handy. Is it somewhat simplified compared to the unmanaged counterparts?

Most definitely. It is definitely alot simpler than unmanaged DirectX.

Share this post


Link to post
Share on other sites
Moe    1256
It sounds rather promising. By the sounds of things, it would be good for prototyping things very quickly.

Share this post


Link to post
Share on other sites
jollyjeffers    1570
Quote:
Original post by Moe
It sounds rather promising. By the sounds of things, it would be good for prototyping things very quickly.
A lot of the usage for MDX that I've come across has been in the prototyping and/or tools sector. Sure, you can use it for other things - but it's those two areas that seem to be getting peoples attention.

Jack

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this