Re: How To Turn C++ Into VB.Net
Ok Niya. I did the same thing you did. I ran the solution through VB.Net 2010 Express Edition, did the whole configuration wizard so it opens through that from now on, ran it and....didnt work because the entire form window had a fat red X indicating that something was wrong through DX. And the reason for this is because by default, VB.Net 2010 uses .Net Framework 4. And this I already know but DX through VB can't use Framework 4 because its DirectX9 and at the time of its release, it was to work with Framework 3.5. So I changed it to .Net Framework 3.5, and it worked both in Window and Fullscreen on my end. DX10 and 11 was never made compatible to VB unfortunately. Also be sure you are running it as X86 and not 64 or Any CPU. I'll try and see if I can simulate the error thats being caused on your end but so far, even through all that, it still works on my machine. If you have another computer, please try it as an experiment. So just to break it down be sure that all this is true:
.NET Framework: 3.5
CPU: X86
References:
Microsoft.DirectX.dll version 1.0.2902.0
Microsoft.DirectX.Direct3D.dll version 1.0.2902.0
Microsoft.DirectX.Direct3DX.dll version 1.0.2911.0
Note: If version 1.0.2911.0 of Direct3DX doesn't work well, try coinciding with the other versions and use 1.0.2902.0 and see what happens. Direct3DX btw is used for special effects and even texture mapping. And since you have issues with it, change it out if you can.