Don't use Visual Basic .NET, use C# (Microsoft said)
I am VERY VERY VERY VERY VERY VERY VERY ANGRY (I didn't use Ctrl+C, Ctrl+V to write this sentence J))
This concern Microsoft DirectX Managed extensions.
This week, Soma publish on his blog that Microsoft support Visual Basic langage at 120%!!! I had a diner with him 1 month ago, if I knew...
So what's the problem ?
Download Microsoft DirectX 9.0c SDK Summer 2004 update and you will know.
First :
DirectX 9.0b managed extensions and 9.0c are incompatibles. DirectX team rename some classes like TextureManagers in TextureManagerCollection (did they know that there is a lot called FxCop if I remember J that can check things like thats ?). It is not really important (we all know that classes names can changed one year later, no ?) but what is strange is that SDK 9.0b examples can't work with DirectX 9.0c due to those changes. If you wrote a project from SDK examples, you must rewrite everything because of that.
Second:
And this is the principal reason of my anger : For Microsoft DirectX Team, Managed extensions == C#. You don't have any project example in Visual Basic .NET.
In DirectX Sampler Viewer, filters are : C++, Managed languages. And Managed languages == C#. In DX Sampler Viewer, when you click on "Install project...", you create a C# project.
In documentation, when they talk about Managed Language, it is always C# they talk about.
More, the Framework they wrote for base project is in C# and can't be used in Visual Basic .NET project (it use unmanaged code).
So conclusion to that is : If you want to write DirectX programs, use C#. It is written clearly in Microsoft DirectX SDK 9.0c : "Don't use this foolish language called Visual Basic .NET, I have no time to write any line of code in this toy language".
"VB is absolutely a core part of our bet and strategy" Soma said. Well, not in all divisions of Microsoft !!!
This is why I'm VERY VERY VERY VERY VERY VERY VERY ANGRY (I used Ctrl+V this time J))
Richard Clark
MVP .NET
NB : I will not talk about versions numbers of DirectX 9.0c assemblies. Look at them, you'll have some fun!!!
Ce post vous a plu ? Ajoutez le dans vos favoris pour ne pas perdre de temps à le retrouver le jour où vous en aurez besoin :